Examples of validate()


Examples of org.eclipse.wst.dtd.core.internal.validation.eclipse.DTDValidator.validate()

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

    ArrayList<Error> results = new ArrayList<Error>();
    DTDValidator validator = DTDValidator.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.wst.server.core.IRuntimeWorkingCopy.validate()

  public boolean isComplete() {
    IRuntimeWorkingCopy runtime = (IRuntimeWorkingCopy) getTaskModel().getObject(TaskModel.TASK_RUNTIME);
   
    if (runtime == null)
      return false;
    IStatus status = runtime.validate(null);
    return (status == null || status.getSeverity() != IStatus.ERROR);
  }

  @Override
  public Composite createComposite(Composite parent, IWizardHandle wizard) {
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.validate.ValidationAdapter.validate()

          va = validator;
        }
        // bug 143213 - Can't batch validate open HTML files when
        // as-you-type validation is enabled
        va.setReporter(validator.getReporter());
        va.validate((IndexedRegion) child);
      }
      child = child.getNextSibling();
    }
  }
View Full Code Here

Examples of org.eclipse.wst.validation.internal.provisional.core.IValidator.validate()

            MyReporter vReporter = new MyReporter();
            if (validator instanceof IValidatorJob) {
              ((IValidatorJob) validator).validateInJob(vHelper, vReporter);
            }
            else {
              validator.validate(vHelper, vReporter);
            }
            List messages = vReporter.list;

            // set the offset and length
            updateValidationMessages(messages, document, reporter);
View Full Code Here

Examples of org.eclipse.wst.wsdl.validation.internal.WSDLValidator.validate()

      try
      {
        result.append(infoDelim).append("\n");
        result.append(messGen.getString(_UI_ACTION_VALIDATING_FILE, filename)).append(" - ");

        IValidationReport valReport = wsdlValidator.validate(filename, null, configuration);

        IValidationMessage[] messages = valReport.getValidationMessages();

        if (!valReport.hasErrors())
        {
View Full Code Here

Examples of org.eclipse.wst.wsdl.validation.internal.wsdl11.xsd.InlineSchemaValidator.validate()

        xsdVal.setMessageGenerator(messagegenerator);
   
        List parents = new ArrayList();
        parents.add(def);
        parents.add(0,types);
        xsdVal.validate(typeElement, parents,valinfo);
        XSModel[] typesSchemas = valinfo.getSchemas();
        List typesSchemaList = new ArrayList();
        for(int i = 0; i < typesSchemas.length; i++)
        { 
          typesSchemaList.add(typesSchemas[i]);
View Full Code Here

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

          // may or may not be schemas.
          boolean createEntityResult = true;
          if(nsUsed)
          {
          XSDValidator xsdVal = new XSDValidator();
          xsdVal.validate(uri, uriResolver, null);
          if(!xsdVal.isValid())
            createEntityResult = false;
          }
         
          if(createEntityResult)
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.wsdl.xsd.InlineSchemaValidator.validate()

        {
          Map map = null;
          try
          {
            // Validating schema element
            map = schemaValidator.validate(extEl, parents, fileName);
          }
          catch (Exception e)
          {
            // Adding an exception to the errors list
            schemasValidationErrors.add(e.getMessage());
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.validate.ValidationComponent.validate()

    Iterator i = components.iterator();
    while (i.hasNext()) {
      ValidationComponent component = (ValidationComponent) i.next();
      if (component == null)
        continue;
      component.validate(node);
    }
  }

  /**
   */
 
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.validation.eclipse.Validator.validate()

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


  /*
 
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.