Examples of createValidator()


Examples of com.thaiopensource.validate.Schema.createValidator()

                || "http://s.validator.nu/xhtml5-rdfalite.rnc".equals(url)
                || "http://s.validator.nu/html5-rdfalite.rnc".equals(url)) {
            errorHandler.setSpec(html5spec);
        }
        Schema sch = resolveSchema(url, jingPropertyMap);
        Validator validator = sch.createValidator(jingPropertyMap);
        if (validator.getContentHandler() instanceof XmlPiChecker) {
          lexicalHandler = (LexicalHandler) validator.getContentHandler();
        }
        return validator;
    }

Examples of com.volantis.mcs.model.ModelFactory.createValidator()

        String errorMessage = null;

        Object object = listBuilder.getObjectControl().getValue();
        if (object != null && object instanceof Validatable) {
            ModelFactory modelFactory = ModelFactory.getDefaultInstance();
            Validator validator = modelFactory.createValidator();

            // Validate the object being created
            validator.validate((Validatable) object);

            // Validate the already created selectors

Examples of com.volantis.mcs.xml.schema.impl.validation.PrototypeElementValidator.createValidator()

    public ElementValidator getElementValidator(ElementType type) {
        PrototypeElementValidator prototype = (PrototypeElementValidator)
                validatorPrototypes.get(type);
        if (prototype != null) {
            return prototype.createValidator();
        }

        return null;
    }

Examples of javax.faces.application.Application.createValidator()

      validator = (LongRangeValidator) _bindingExpr.getValue(elContext);

    if (validator == null) {
      String id = LongRangeValidator.VALIDATOR_ID;

      validator = (LongRangeValidator) app.createValidator(id);

      if (_bindingExpr != null)
        _bindingExpr.setValue(elContext, validator);
    }

Examples of javax.faces.application.Application.createValidator()

      validator = (DoubleRangeValidator) _bindingExpr.getValue(elContext);

    if (validator == null) {
      String id = DoubleRangeValidator.VALIDATOR_ID;

      validator = (DoubleRangeValidator) app.createValidator(id);

      if (_bindingExpr != null)
        _bindingExpr.setValue(elContext, validator);
    }

Examples of javax.faces.application.Application.createValidator()

      validator = (LengthValidator) _bindingExpr.getValue(elContext);

    if (validator == null) {
      String id = LengthValidator.VALIDATOR_ID;

      validator = (LengthValidator) app.createValidator(id);

      if (_bindingExpr != null)
        _bindingExpr.setValue(elContext, validator);
    }

Examples of javax.faces.application.Application.createValidator()

                if (validatorClassName == null)
                {
                    // we have no class name for validators of enclosing <f:validateBean> tags
                    // --> we have to create it to get the class name
                    // note that normally we can use this instance later anyway!
                    enclosingValidator = application.createValidator(validatorId);
                    validatorClassName = enclosingValidator.getClass().getName();
                }
               
                // check if the validator is already registered for the given component
                // this happens if <f:validateBean /> is nested inside the component on the view

Examples of javax.faces.application.Application.createValidator()

                            validator = enclosingValidator;
                        }
                        else
                        {
                            // create it
                            validator = application.createValidator(validatorId);
                        }
                        // add the validator to the component
                        component.addValidator(validator);
                    }
                    else

Examples of javax.faces.application.Application.createValidator()

        FacesContext facesContext = FacesContext.getCurrentInstance();
        Application application = facesContext.getApplication();
        if (UIComponentTag.isValueReference(_validatorId))
        {
            ValueBinding vb = facesContext.getApplication().createValueBinding(_validatorId);
            return application.createValidator((String)vb.getValue(facesContext));
        }
        else
        {
            return application.createValidator(_validatorId);
        }

Examples of javax.faces.application.Application.createValidator()

            ValueBinding vb = facesContext.getApplication().createValueBinding(_validatorId);
            return application.createValidator((String)vb.getValue(facesContext));
        }
        else
        {
            return application.createValidator(_validatorId);
        }
    }
}
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.