Examples of validate()


Examples of org.opensaml.xml.validation.ValidatorSuite.validate()

                org.opensaml.Configuration.getValidatorSuite("saml1-schema-validator");
            ValidatorSuite specValidators =
                org.opensaml.Configuration.getValidatorSuite("saml1-spec-validator");
            try {
                schemaValidators.validate(assertion.getSaml1());
                specValidators.validate(assertion.getSaml1());
            } catch (ValidationException e) {
                LOG.fine("Saml Validation error: " + e.getMessage());
                throw new WSSecurityException(WSSecurityException.FAILURE, "invalidSAMLsecurity");
            }
        } else if (assertion.getSaml2() != null) {
View Full Code Here

Examples of org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator.validate()

            JButton btnCheck = new JButton(tr("Validate"));
            btnCheck.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    val.validate();
                }
            });
            btnCheck.setLayout(new BorderLayout());
            btnCheck.setMargin(new Insets(-1,0,-1,0));
View Full Code Here

Examples of org.opentides.bean.BaseReportValidator.validate()

      String[] validatorParam = parameters.get("validator");
      if(validatorParam != null){
        String key = validatorParam[0];
        BaseReportValidator validator = reportValidators.get(key); //retrieve the particular validator of a report
        if(validator.supports(DynamicReport.class)){  //only validate from the Report Module
        List<String> errorMessages = validator.validate(request); //validate entered data
      if(errorMessages != null){
        Map<String,Object> model = new HashMap<String,Object>();
          Map<String,String[]> requestParameters = transformRequest(request)//retrieve original request parameters
        List<ReportDefinition>  missingParameters = service.getMissingParameters(
            requestParameters , jrXmlStream); //retrieve original missed parameters
View Full Code Here

Examples of org.openuri.sgs.RootDocument.validate()

            "</root>";


        RootDocument doc1 = RootDocument.Factory.parse(xml1);
        RootDocument.Root root = doc1.getRoot();
        assertTrue(doc1.validate());

        XmlString a = root.xgetAArray(0);
        assertTrue(a.schemaType().equals(XmlString.type));
        assertEquals("\ta\ta\t", a.stringValue());
View Full Code Here

Examples of org.pentaho.gwt.widgets.client.dialogs.IDialogValidatorCallback.validate()

  }

  protected void onOk() {
    IDialogCallback callback = this.getCallback();
    IDialogValidatorCallback validatorCallback = this.getValidatorCallback();
    if ( validatorCallback == null || ( validatorCallback != null && validatorCallback.validate() ) ) {
      try {
        if ( callback != null ) {
          setFormAction();
          callback.okPressed();
        }
View Full Code Here

Examples of org.pentaho.platform.api.data.IDataComponent.validate()

        dataComponent.setSession( getSession() );
        dataComponent.setLoggingLevel( getLoggingLevel() );
        dataComponent.setMessages( getMessages() );
        // if that fails, then we know we messed up again.
        // Abort, we cant continue anyway.
        if ( ( dataComponent.validate() == IRuntimeContext.RUNTIME_CONTEXT_VALIDATE_OK ) && dataComponent.init()
            && ( dataComponent.execute() == IRuntimeContext.RUNTIME_STATUS_SUCCESS ) ) {
          final IPentahoResultSet resultset = dataComponent.getResultSet();
          factory =
              new PentahoTableDataFactory( AbstractJFreeReportComponent.DATACOMPONENT_DEFAULTINPUT,
                  new PentahoTableModel( resultset ) );
View Full Code Here

Examples of org.pentaho.platform.api.engine.IComponent.validate()

              actionDefinition.getComponentName() );
        }

        int validateResult = IRuntimeContext.RUNTIME_CONTEXT_VALIDATE_OK;
        try {
          validateResult = component.validate();
          /*
           * We need to catch checked and unchecked exceptions here so we can create an ActionSequeceException with
           * contextual information, including the root cause. Allowing unchecked exceptions to pass through would
           * prevent valuable feedback in the log or response.
           */
 
View Full Code Here

Examples of org.pentaho.platform.api.ui.IUIComponent.validate()

          return;
        }
        session.setAttribute( componentName, component );
      }

      if ( !component.validate() ) {
        // TODO need an error here
        return;
      }
      String baseUrl =
          request.getScheme()
View Full Code Here

Examples of org.pentaho.platform.plugin.services.pluginmgr.IAdminContentConditionalLogic.validate()

            String currentToken = nameValuePairs.nextToken().trim();
            if ( currentToken.startsWith( "conditional-logic-validator=" ) ) {
              String validatorName = currentToken.substring( "conditional-logic-validator=".length() );
              Class<?> validatorClass = pluginManager.getClassLoader( pluginId ).loadClass( validatorName );
              IAdminContentConditionalLogic validator = (IAdminContentConditionalLogic) validatorClass.newInstance();
              int status = validator.validate();
              if ( status == IAdminContentConditionalLogic.DISPLAY_ADMIN_CONTENT ) {
                settings.add( new Setting( "admin-content-info", adminContentInfo ) );
              }
              if ( status == IAdminContentConditionalLogic.DISPLAY_EXCEPTION_MESSAGE && exceptionMessage != null ) {
                settings.add( new Setting( "exception-message", exceptionMessage ) );
View Full Code Here

Examples of org.pentaho.platform.uifoundation.chart.CategoryDatasetChartComponent.validate()

    usessionNoAuth.doStartupActions( requestParameters );
    SimpleOutputHandler outputHandler = new SimpleOutputHandler( outputStream, false );
    BaseRequestHandler requestHandler = new BaseRequestHandler( session, null, outputHandler, null, urlFactory );

    try {
      categoryChartComponent.validate( session, requestHandler );
      categoryChartComponent.handleRequest( outputStream, requestHandler, contentType, parameterProviders );
    } catch ( IOException e ) {
      e.printStackTrace();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.