org.exolab.castor.xml.validators

Class IdValidator

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(Object object)
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, validate, validate, validate

Methods inherited from class org.exolab.castor.xml.validators.PatternValidator

addPattern, clearPatterns, getPattern, getPatterns, hasPattern, isNillable, setNillable, setPattern, validate, validate

Constructor Details

IdValidator

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

Method Details

validate

public void validate(Object object)
            throws ValidationException
Validates the given Object.
Overrides:
validate in interface 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 interface StringValidator
Parameters:
object - the Object to validate
context - the ValidationContext
Throws:
ValidationException - if the object fails validation.

validate

public void validate(String value,
                     ValidationContext context)
            throws ValidationException
Validates the given Object.
Overrides:
validate in interface StringValidator
Parameters:
value - the string to validate
context - the ValidationContext
Throws:
ValidationException - if the object fails validation.

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