Package org.eclipse.wst.validation

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));
          }
        }
      }
    }
View Full Code Here


    return _validator;
  }

  protected IValidator getDelegateValidator()
  {
    Validator v = getValidator();
    if (v == null)
      return null;
    return v.asIValidator();
  }
View Full Code Here

    return v.asIValidator();
  }

  protected boolean isDelegateValidatorEnabled(IFile file)
  {
    Validator v = getValidator();
    if (v == null)
      return false;
    if (!file.isSynchronized(IResource.DEPTH_ZERO))
      return false;
    if (!v.shouldValidate(file, false, false))
      return false;
    return v.isBuildValidation() || v.isManualValidation();
  }
View Full Code Here

        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));
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.validation.Validator

Copyright © 2018 www.massapicom. 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.