Package org.exolab.castor.xml.validators
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 TypeMethodDescriptionvoid
Validates the given Object.void
validate
(Object object, ValidationContext context) Validates the given Object.void
validate
(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, setWhiteSpace
Methods 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:
validate
in classStringValidator
- Parameters:
value
- the string to validatecontext
- the ValidationContext- Throws:
ValidationException
- if the object fails validation.- See Also:
-
validate
Validates the given Object.- Overrides:
validate
in classStringValidator
- Parameters:
object
- the Object to validate- Throws:
ValidationException
- if the object fails validation.
-
validate
Validates the given Object.- Specified by:
validate
in interfaceTypeValidator
- Overrides:
validate
in classStringValidator
- Parameters:
object
- the Object to validatecontext
- the ValidationContext- Throws:
ValidationException
- if the object fails validation.
-