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
public class IdValidator extends StringValidator implements 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 Constructor Description IdValidator()Creates a new IdValidator with no restrictions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(java.lang.Object object)Validates the given Object.voidvalidate(java.lang.Object object, ValidationContext context)Validates the given Object.voidvalidate(java.lang.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
-
-
-
-
Method Detail
-
validate
public void validate(java.lang.String value, ValidationContext context) throws ValidationExceptionValidates the given Object.- Overrides:
validatein classStringValidator- Parameters:
value- the string to validatecontext- the ValidationContext- Throws:
ValidationException- if the object fails validation.- See Also:
#setPattern
-
validate
public void validate(java.lang.Object object) throws ValidationExceptionValidates the given Object.- Overrides:
validatein classStringValidator- Parameters:
object- the Object to validate- Throws:
ValidationException- if the object fails validation.
-
validate
public void validate(java.lang.Object object, ValidationContext context) throws ValidationExceptionValidates 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.
-
-