Examples of validate()


Examples of com.globant.google.mendoza.malbec.SchemaValidator.validate()

  public void setMerchantCalculation(final String callbackMsg,
      final String resultMsg, final Date startTime, final Date endTime) {
    log.trace("Entering setMerchantCalculation");

    SchemaValidator validator = new SchemaValidator();
    SchemaValidationResult result = validator.validate(resultMsg);
    boolean resultXMLValid = result.isXmlValid();
    String validationMessage = "Merchant calculation results XML is valid.";
    if (!resultXMLValid) {
      validationMessage = "Merchant calculation results XML is not valid.\n";
      validationMessage = validationMessage + result.getMessage();
View Full Code Here

Examples of com.google.enterprise.connector.util.UrlValidator.validate()

  int validateUrl(String urlString, ResourceBundle bundle)
      throws UrlConfigurationException {
    try {
      UrlValidator validator = new UrlValidator();
      validator.setRequireFullyQualifiedHostNames(true);
      return validator.validate(urlString);
    } catch (UrlValidatorException e) {
      // FIXME: The Not found message is confusing with an error about
      // fully-qualified host names. I think the validator should
      // throw a different exception in that case, and we should
      // provide a different message.
View Full Code Here

Examples of com.google.visualization.datasource.query.Query.validate()

        Lists.newArrayList((AbstractColumn) new SimpleColumn("hireDate")),
        TimeComponentExtractor.getInstance(
            TimeComponentExtractor.TimeComponent.DAY)), SortOrder.ASCENDING);
    q.setSort(sort);

    q.validate();

    DataTable result = QueryEngine.executeQuery(q, res, ULocale.US);

    // Test column description
    List<ColumnDescription> cols = result.getColumnDescriptions();
View Full Code Here

Examples of com.googlecode.richrest.util.validator.Validator.validate()

    Action<Serializable, Serializable> srcAction = ActionContext.getContext().getAction();
    if (srcAction instanceof Validatable) {
      Validatable validationAction = (Validatable)srcAction;
      Validator validator = validationAction.getValidator();
      if (validator != null)
        validator.validate(model);
    }
    return action.execute(model);
  }

}
View Full Code Here

Examples of com.healthmarketscience.sqlbuilder.CreateTableQuery.validate()

        setColumnConstraintForQuery(query, column);
      }

      PreparedStatement statement = null;
      try {
        statement = connection.prepareStatement(query.validate().toString());
        statement.executeUpdate();
      } catch (SQLException ex) {
        throw new IOException(ex);
      } finally {
        SqlUtils.close(statement);
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.validate()

    model.prepare();
    long e = System.currentTimeMillis();
   
    //print time and validation report
    System.out.println( "Total time " + (e - s) + " ms)" );
    JenaReasoner.printIterator( model.validate().getReports(), "Validation Results" );

    // perform ABox addition which results in a consistent KB
    Resource concept = model.getResource( mindswap + "GraduateStudent" );
    Individual individual = model.createIndividual( mindswappers + "JohnDoe", concept );
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.InfModel.validate()

    try {
      Model m = ModelFactory.createDefaultModel();
      m.add(ont);
      m.read(new FileInputStream(rdf),currentBase);
      InfModel inf = ModelFactory.createInfModel(reasoner,m);
      assertTrue(inf.validate().isValid());
    }
    catch (Exception e) {
      fail(e.getMessage());     
    }
  }
View Full Code Here

Examples of com.hp.hpl.jena.reasoner.InfGraph.validate()

        boolean noisy = !(baseDir.equals(DEFAULT_BASE_DIR)
               || ARPTests.internet );
        if (testType.equals(PositiveEntailmentTest)) {
            if (conclusions == null) {
                // Check that the result is flagged as semantically invalid
                correct = ! graph.validate().isValid();
                if (noisy) {
                    System.out.println("PositiveEntailmentTest of FalseDoc " + test.getURI() + (correct ? " - OK" : " - FAIL"));
                }
            } else {
                correct = testConclusions(conclusions.getGraph(), result.getGraph());
View Full Code Here

Examples of com.jada.ie.ItemSimpleTransformation.validate()

        if (Format.isNullOrEmpty(input)) {
          break;
        }
       
        try {
          String messages[] = transformation.validate(input);
          if (messages.length > 0) {
            String output = formatHtmlMessage(lineNumber, input, messages);
            form.setMessageText(output);
            return actionMapping.findForward("error");
          }
View Full Code Here

Examples of com.jada.xml.ie.ItemSimple.validate()

            form.setMessageText(output);
            return actionMapping.findForward("error");
          }
         
          ItemSimple itemSimple = transformation.fromImport(input);
          messages = itemSimple.validate();
          if (messages.length > 0) {
            String output = formatHtmlMessage(lineNumber, input, messages);
            form.setMessageText(output);
            return actionMapping.findForward("error");
          }
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.