Class IdValidator
java.lang.Object
org.exolab.castor.xml.validators.PatternValidator
org.exolab.castor.xml.validators.StringValidator
org.exolab.castor.xml.validators.IdValidator
- All Implemented Interfaces:
TypeValidator
The ID Validation class.
- Version:
- $Revision: 5951 $ $Date: 2003-03-03 02:57:21 -0700 (Mon, 03 Mar 2003) $
- Author:
- Werner Guttman
-
Field Summary
Fields inherited from class org.exolab.castor.xml.validators.PatternValidator
resourceBundle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidValidates the given Object.voidvalidate(Object object, ValidationContext context) Validates the given Object.voidvalidate(String value, ValidationContext context) Validates the given Object.Methods inherited from class org.exolab.castor.xml.validators.StringValidator
clearFixed, normalize, setFixed, setFixedValue, setLength, setMaxLength, setMinLength, setRequired, setWhiteSpaceMethods inherited from class org.exolab.castor.xml.validators.PatternValidator
addPattern, clearPatterns, getPatterns, hasPattern, isNillable, setNillable
-
Constructor Details
-
IdValidator
public IdValidator()Creates a new IdValidator with no restrictions.
-
-
Method Details
-
validate
Validates the given Object.- Overrides:
validatein classStringValidator- Parameters:
value- the string to validatecontext- the ValidationContext- Throws:
ValidationException- if the object fails validation.- See Also:
-
validate
Validates the given Object.- Overrides:
validatein classStringValidator- Parameters:
object- the Object to validate- Throws:
ValidationException- if the object fails validation.
-
validate
Validates the given Object.- Specified by:
validatein interfaceTypeValidator- Overrides:
validatein classStringValidator- Parameters:
object- the Object to validatecontext- the ValidationContext- Throws:
ValidationException- if the object fails validation.
-