org.exolab.castor.xml.validators
Class IdValidator

java.lang.Object
  extended by org.exolab.castor.xml.validators.PatternValidator
      extended by org.exolab.castor.xml.validators.StringValidator
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.exolab.castor.xml.validators.PatternValidator
PatternValidator.DefaultRegExpEvaluator
 
Constructor Summary
IdValidator()
          Creates a new IdValidator with no restrictions.
 
Method Summary
 void validate(java.lang.Object object)
          Validates the given Object.
 void validate(java.lang.Object object, ValidationContext context)
          Validates the given Object.
 void validate(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, getPattern, getPatterns, hasPattern, isNillable, setNillable, setPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdValidator

public IdValidator()
Creates a new IdValidator with no restrictions.

Method Detail

validate

public void validate(java.lang.String value,
                     ValidationContext context)
              throws ValidationException
Validates the given Object.

Overrides:
validate in class StringValidator
Parameters:
value - the string to validate
context - the ValidationContext
Throws:
ValidationException - if the object fails validation.
See Also:
PatternValidator.setPattern(java.lang.String)

validate

public void validate(java.lang.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(java.lang.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 validate
context - the ValidationContext
Throws:
ValidationException - if the object fails validation.


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com