Examples of StringValidator


Examples of org.apache.wicket.validation.validator.StringValidator

        add(form);
       
        TextField<String> nameTextField = new TextField<String>("name");
        nameTextField.setRequired(true);
        nameTextField.add(new XMLNameValidator());
        nameTextField.add(new StringValidator() {
           
            @Override
            protected void onValidate(IValidatable<String> validatable) {
                if(CatalogImpl.DEFAULT.equals(validatable.getValue())) {
                    error(validatable, "defaultWsError");
View Full Code Here

Examples of org.apache.xerces.validators.datatype.StringValidator

        void initializeRegistry() {
            Hashtable facets = null;
            fRegistry.put("boolean", new BooleanValidator());
            DatatypeValidator integerValidator = new IntegerValidator();
            fRegistry.put("integer", integerValidator);
            fRegistry.put("string", new StringValidator());
            fRegistry.put("real", new RealValidator());
            fRegistry.put("decimal", new DecimalValidator());
            //REVISIT - enable the below
            //fRegistry.put("binary", new BinaryValidator());
            //fRegistry.put("date", new DateValidator());
View Full Code Here

Examples of org.apache.xerces.validators.datatype.StringValidator

        void initializeRegistry() {
            Hashtable facets = null;
            fRegistry.put("boolean", new BooleanValidator());
            DatatypeValidator integerValidator = new IntegerValidator();
            fRegistry.put("integer", integerValidator);
            fRegistry.put("string", new StringValidator());
            fRegistry.put("decimal", new DecimalValidator());
            fRegistry.put("float", new FloatValidator());
            fRegistry.put("double", new DoubleValidator());
            //REVISIT - enable the below
            //fRegistry.put("binary", new BinaryValidator());
View Full Code Here

Examples of org.apache.xerces.validators.datatype.StringValidator

        void initializeRegistry() {
            Hashtable facets = null;
            fRegistry.put("boolean", new BooleanValidator());
            DatatypeValidator integerValidator = new IntegerValidator();
            fRegistry.put("integer", integerValidator);
            fRegistry.put("string", new StringValidator());
            fRegistry.put("decimal", new DecimalValidator());
            fRegistry.put("float", new FloatValidator());
            fRegistry.put("double", new DoubleValidator());
            fRegistry.put("timeDuration", new TimeDurationValidator());
            fRegistry.put("timeInstant", new TimeInstantValidator());
View Full Code Here

Examples of org.infoglue.cms.util.validators.StringValidator

          }
        case Constants.STRING:
          {
          if (cr.getValue() != null)
          {           
              StringValidator v = new StringValidator(cr.getFieldName());
              v.setObjectClass(vo.getConstraintRuleList().getEntityClass());
              v.setRange(cr.getValidRange());
              v.setIsRequired(cr.required);
              v.setMustBeUnique(cr.unique);
              v.setExcludeId(intId);

              v.validate((String) cr.getValue(), ceb);
          }             
            break;
          }
          case Constants.FLOAT:
          {
View Full Code Here

Examples of org.infoglue.cms.util.validators.StringValidator

          }
        case Constants.STRING:
          {
          if (cr.getValue() != null)
          {           
              StringValidator v = new StringValidator(cr.getFieldName());
              v.setObjectClass(vo.getConstraintRuleList().getEntityClass());
              v.setRange(cr.getValidRange());
              v.setIsRequired(cr.required);
              v.setMustBeUnique(cr.unique);
              v.setExcludeId(intId);

              v.validate((String) cr.getValue(), ceb);
          }             
            break;
          }
          case Constants.FLOAT:
          {
View Full Code Here

Examples of org.infoglue.cms.util.validators.StringValidator

        }
        case Constants.STRING:
        {
          if (cr.getValue() != null)
          {           
            StringValidator v = new StringValidator(cr.getFieldName());
            v.setObjectClass(vo.getConstraintRuleList().getEntityClass());
            v.setRange(cr.getValidRange());
            v.setIsRequired(cr.required);
            v.setMustBeUnique(cr.unique);
            v.setExcludeId(null);
            v.setExcludeObject(userName);

            v.validate((String) cr.getValue(), ceb);
          }             
          break;
        }
        case Constants.FLOAT:
        {
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.