Examples of validate()


Examples of org.eclipse.wst.xsd.core.internal.validation.eclipse.XSDValidator.validate()

    String project = commandLine.getValue(Options.PROJECT_OPTION);
    String file = commandLine.getValue(Options.FILE_OPTION);

    ArrayList<Error> results = new ArrayList<Error>();
    XSDValidator validator = XSDValidator.getInstance();
    ValidationReport result = validator.validate(toUri(project, file));
    ValidationMessage[] messages = result.getValidationMessages();
    for (int ii = 0; ii < messages.length; ii++){
      StringBuffer message = new StringBuffer(messages[ii].getMessage());
      for (Object o : messages[ii].getNestedMessages()){
        ValidationMessage nested = (ValidationMessage)o;
View Full Code Here

Examples of org.eclipse.xtext.validation.IResourceValidator.validate()

    throw new IllegalStateException();
  }

  protected List<Issue> validate(EObject model) {
    IResourceValidator validator = ((XtextResource) model.eResource()).getResourceServiceProvider().getResourceValidator();
    return validator.validate(model.eResource(), CheckMode.ALL, CancelIndicator.NullImpl);
  }
 
  protected Iterable<Issue> getValidationErrors(final EObject model) {
    final List<Issue> validate = validate(model);
    Iterable<Issue> issues = filter(validate, new Predicate<Issue>() {
View Full Code Here

Examples of org.eigenbase.sql.validate.SqlValidator.validate()

      final OptiqCatalogReader catalogReader =
          createCatalogReader().withSchemaPath(schemaPath);
      SqlValidator validator = new OptiqSqlValidator(
          operatorTable, catalogReader, typeFactory);
      SqlNode validatedSqlNode = validator.validate(sqlNode);

      SqlToRelConverter sqlToRelConverter = new SqlToRelConverter(
          null, validator, catalogReader, planner,
          createRexBuilder(), convertletTable);
      sqlToRelConverter.setTrimUnusedFields(false);
View Full Code Here

Examples of org.ejbca.core.protocol.xkms.client.XKMSInvoker.validate()

        JAXBElement<ValidateRequestType> validateRequest = xKMSObjectFactory.createValidateRequest(validateRequestType);

        Document doc = dbf.newDocumentBuilder().newDocument();
        marshaller.marshal(validateRequest, doc);
        try {
            ValidateResultType validateResultType = xKMSInvoker.validate(validateRequestType, pkCert, key);
            assertTrue(validateResultType.getRequestId().equals("200"));
            assertTrue(validateResultType.getResultMajor().equals(XKMSConstants.RESULTMAJOR_SUCCESS));
        } catch (javax.xml.ws.soap.SOAPFaultException e) {
            log.debug("", e);
            assertTrue("There was a server error. (" + e.getMessage() + ") Did you enable the XKMS CA service?", false);
View Full Code Here

Examples of org.elasticsearch.search.aggregations.support.OrderPath.validate()

            return order;
        } else if (!(order instanceof Aggregation)) {
            return order;
        }
        OrderPath path = ((Aggregation) order).path();
        path.validate(termsAggregator);
        return order;
    }

    static class Aggregation extends InternalOrder {
View Full Code Here

Examples of org.eluder.coveralls.maven.plugin.domain.Job.validate()

        }
       
        try {
            createEnvironment().setup();
            Job job = createJob();
            job.validate().throwOrInform(getLog());
            SourceLoader sourceLoader = createSourceLoader(job);
            List<CoverageParser> parsers = createCoverageParsers(sourceLoader);
            JsonWriter writer = createJsonWriter(job);
            CoverallsClient client = createCoverallsClient();
            List<Logger> reporters = new ArrayList<Logger>();
View Full Code Here

Examples of org.eluder.coveralls.maven.plugin.validation.JobValidator.validate()

        return git;
    }
   
    public ValidationErrors validate() {
        JobValidator validator = new JobValidator(this);
        return validator.validate();
    }
}
View Full Code Here

Examples of org.encog.app.analyst.script.prop.PropertyEntry.validate()

        section, subSection, name);
    if (entry == null) {
      throw new AnalystError("Unknown property: "
          + PropertyEntry.dotForm(section, subSection, name));
    }
    entry.validate(section, subSection, name, value);
  }

}
View Full Code Here

Examples of org.encog.ml.bayesian.BayesianNetwork.validate()

    network.createDependency(a, b);
    network.finalizeStructure();
    a.getTable().addLine(0.5, true); // P(A) = 0.5
    b.getTable().addLine(0.2, true, true); // p(b|a) = 0.2
    b.getTable().addLine(0.8, true, false);// p(b|~a) = 0.8   
    network.validate();
    return network;
  }
 
  public void validate(BayesianNetwork network)
  {
View Full Code Here

Examples of org.enhydra.jawe.base.panel.panels.XMLActualParametersPanel.validate()

                    FormalParameters _fps = null;
                    if (sel instanceof WorkflowProcess) {
                        _fps = ((WorkflowProcess) sel).getFormalParameters();
                    }
                    app.setFormalParameters(_fps);
                    app.validate();
                }
            });
            cp.getComboBox().getEditor().getEditorComponent().addKeyListener(new KeyAdapter() {

                public void keyPressed(KeyEvent e) {
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.