Package org.eclipse.wst.validation.internal.provisional.core

Examples of org.eclipse.wst.validation.internal.provisional.core.IValidator


          // Not likely to happen
          byteArray = xmlModel.getStructuredDocument().get().getBytes();
        }

        if (isDelegateValidatorEnabled(file)) {
          IValidator validator = getDelegateValidator();
          if (validator != null) {
            // Validate the file:
            IValidationContext vHelper = new MyHelper(new ByteArrayInputStream(byteArray), file);
            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


          if (o != null) {
            validatorStep = (ReconcileStepForValidator) o;
          }
          else {
            // if doesn't exist, create one
            IValidator validator = vmd.createValidator();

            validatorStep = new ReconcileStepForValidator(validator, validatorScope);
            validatorStep.setInputModel(new DocumentAdapter(doc));

            fVidToVStepMap.put(vmd.getValidatorId(), validatorStep);
View Full Code Here

          if (o != null) {
            validatorStep = (ReconcileStepForValidator) o;
          }
          else {
            // if doesn't exist, create one
            IValidator validator = vmd.createValidator();

            validatorStep = new ReconcileStepForValidator(validator, validatorScope);
            validatorStep.setInputModel(new DocumentAdapter(doc));

            fVidToVStepMap.put(vmd.getValidatorId(), validatorStep);
View Full Code Here

TOP

Related Classes of org.eclipse.wst.validation.internal.provisional.core.IValidator

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.