Skip navigation links
oracle.wcps.property.validator
Class StringLengthValidator
java.lang.Object
oracle.wcps.property.validator.StringLengthValidator
- All Implemented Interfaces:
- IValidator<java.lang.String>
-
public class StringLengthValidator
- extends java.lang.Object
- implements IValidator<java.lang.String>
Validates Type.STRING
property value length to be less than or equals to 80 by default. A validator value can be used in IPropertyDefinition
to override the default length 80.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_LENGTH
public static int DEFAULT_LENGTH
StringLengthValidator
public StringLengthValidator()
validate
public void validate(IProperty<java.lang.String> property,
IPropertyDefinition propertyDefinition,
java.lang.String validatorValue)
throws ValidationFailedException
- Description copied from interface:
IValidator
- Validates the given property's value.
-
- Specified by:
validate
in interface IValidator<java.lang.String>
-
- Parameters:
property
- a property to be validated.
propertyDefinition
- the propertydefinition for the given property.
validatorValue
- an extra value to use in validation.
- Throws:
ValidationFailedException
- if validation fails.
parseLengthValue
protected int parseLengthValue(java.lang.String validatorValue)
Skip navigation links
Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.