Examples of Validator


Examples of org.custommonkey.xmlunit.Validator

        dummyMerchantConstants);
    request.setGoogleOrderNo("1234567890");
    request.setMerchantOrderNo("0987654321");

    try {
      Validator v = new Validator(request.getXml());
      v.useXMLSchema(true);
      v.setJAXP12SchemaSource(xsd);

      assertTrue("XML valid ", v.isValid());
    } catch (SAXNotRecognizedException e) {
      System.out.println("Parser does not support validation.");
    }
  }

Examples of org.drools.guvnor.client.decisiontable.Validator

        super( clientFactory,
               eventBus,
               context,
               presenter );

        Validator validator = new Validator( dtable.getConditions() );
        this.summaryPage = new SummaryPage( context,
                                            dtable,
                                            eventBus,
                                            validator );
        this.columnExpansionPage = new ColumnExpansionPage( context,

Examples of org.drools.workbench.screens.guided.dtable.client.widget.Validator

        this.model = new GuidedDecisionTable52();
        this.model.setTableFormat( context.getTableFormat() );
        this.oracle = oracle;
        this.handler = handler;

        final Validator validator = new Validator( model.getConditions() );

        for ( WizardPage page : pages ) {
            final AbstractGuidedDecisionTableWizardPage dtp = (AbstractGuidedDecisionTableWizardPage) page;
            dtp.setContent( context,
                            oracle,

Examples of org.eclipse.wst.validation.Validator

        Logger.logException(e);
      }

      if (disabledValidators != null) {
        for (Iterator it = disabledValidators.iterator(); it.hasNext();) {
          Validator v = (Validator) it.next();
          Validator.V1 v1 = null;
          try {
            v1 = v.asV1Validator();
          }
          catch (Exception e) {
            Logger.logException(e);
          }
          if (v1 != null)
            disabledValsByClass.add(v1.getId());
          // not a V1 validator
          else if (v.getSourceId() != null) {
            //could be more then one sourceid per batch validator
            String[] sourceIDs = StringUtils.unpack(v.getSourceId());
            disabledValsBySourceId.addAll(Arrays.asList(sourceIDs));
          }
        }
      }
    }

Examples of org.eclipse.wst.xml.core.internal.validation.eclipse.Validator

        adapter.setReporter(rep);
        adapter.validate(document);
      }
    }
    if (!hasHTMLFeature && isXMLJSP) {
      Validator xmlValidator = new Validator();
      xmlValidator.validate(file, kind, state, monitor);
    }
  }

Examples of org.elasticsearch.cluster.settings.Validator

        this.joinThreadControl = new JoinThreadControl(threadPool);

        transportService.registerHandler(DISCOVERY_REJOIN_ACTION_NAME, new RejoinClusterRequestHandler());

        dynamicSettings.addDynamicSetting(ElectMasterService.DISCOVERY_ZEN_MINIMUM_MASTER_NODES, new Validator() {
            @Override
            public String validate(String setting, String value) {
                int intValue;
                try {
                    intValue = Integer.parseInt(value);

Examples of org.eweb4j.mvc.action.annotation.Validator

    if (rcb != null)
      action.getResult().add(rcb);

    // 读取@Validator注解
    Validator validatorAnn = m.getAnnotation(Validator.class);
    if (validatorAnn != null)
      action.setValidator(ValidatorUtil.readValidator(validatorAnn,
          m.getAnnotation(ValField.class),
          m.getAnnotation(ValMess.class),
          m.getAnnotation(ValParamName.class),

Examples of org.exist.validation.Validator

    private boolean isValid(XmldbURI docUri) throws EXistException, PermissionDeniedException {
        boolean isValid=false;

        try {
            // Setup validator
            final Validator validator = new Validator(factory.getBrokerPool());
           
            // Get inputstream
            // TODO DWES reconsider
            final InputStream is = new EmbeddedInputStream( new XmldbURL(docUri) );
           
            // Perform validation
            final ValidationReport report = validator.validate(is);
           
            // Return validation result
            isValid = report.isValid();
           
        } catch (final Throwable e) {

Examples of org.exoplatform.webui.config.Validator

      return eventInterceptor;
   }

   private Validator toValidator(ValidatorConfig annotation) throws Exception
   {
      Validator validator = new Validator();
      validator.setType(annotation.type().getName());
      validator.setInitParams(toInitParams(annotation.initParams()));
      return validator;
   }

Examples of org.formic.wizard.form.Validator

        if (dirList != null){
          dirList.setEnabled(!selected);
        }

        // hacky
        Validator validator = (Validator)
          fileField.getClientProperty("validator");
        setValid(selected || validator.isValid(fileField.getText()));
      }
    });

    panel = new JPanel(new MigLayout(
          "wrap 2", "[fill]", "[] [] [] [fill, grow]"));
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.