Examples of MarkupValidator


Examples of net.java.textilej.validation.MarkupValidator

   * @return the markup validator
   *
   * @see #getDialectNames()
   */
  public MarkupValidator getMarkupValidator(String name) {
    MarkupValidator markupValidator = new MarkupValidator();
   
    if (validationRulesByDialectName == null) {
      initializeValidationRules();
    }
    List<ValidationRule> rules = validationRulesByDialectName.get(name);
    if (rules != null) {
      markupValidator.getRules().addAll(rules);
    }
   
    return markupValidator;
  }
View Full Code Here

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

    if (file.isAccessible()) {
      // TAGX
      if (fTagXexts.contains(file.getFileExtension()) || fTagXnames.contains(file.getName())) {
        monitor.beginTask("", 3);
        org.eclipse.wst.xml.core.internal.validation.eclipse.Validator xmlValidator = new org.eclipse.wst.xml.core.internal.validation.eclipse.Validator();
        ValidationResult result3 = new MarkupValidator().validate(resource, kind, state, new SubProgressMonitor(monitor, 1));
        if(monitor.isCanceled()) return result;
        ValidationResult result2 = xmlValidator.validate(resource, kind, state, new SubProgressMonitor(monitor, 1));
        if(monitor.isCanceled()) return result;
        ValidationResult result1 = new JSPActionValidator().validate(resource, kind, state, new SubProgressMonitor(monitor, 1));
        List messages = new ArrayList(result1.getReporter(new NullProgressMonitor()).getMessages());
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.