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
|
Constructor Summary |
IdValidator()
Creates a new IdValidator with no restrictions. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdValidator
public IdValidator()
- Creates a new IdValidator with no restrictions.
validate
public void validate(String value,
ValidationContext context)
throws ValidationException
- Validates the given Object.
- Overrides:
validate in class StringValidator
- Parameters:
value - the string to validatecontext - the ValidationContext
- Throws:
ValidationException - if the object fails validation.- See Also:
#setPattern
validate
public void validate(Object object)
throws ValidationException
- Validates the given Object.
- Overrides:
validate in class StringValidator
- Parameters:
object - the Object to validate
- Throws:
ValidationException - if the object fails validation.
validate
public void validate(Object object,
ValidationContext context)
throws ValidationException
- Validates the given Object.
- Specified by:
validate in interface TypeValidator- Overrides:
validate in class StringValidator
- Parameters:
object - the Object to validatecontext - the ValidationContext
- Throws:
ValidationException - if the object fails validation.
Copyright © 2011. All Rights Reserved.