DataTypeValidator defines the interface that data type validators must obey.
These validators can be supplied by the application writer and may be useful as
standalone code as well as plugins to the validator architecture.
Note: there is no support for facets in this API, since we are trying to convince
W3C to remove facets from the data type spec.
author: Jeffrey Rodriguez- version: $Id: DatatypeValidator.java,v 1.12 2001/05/15 12:58:26 elena Exp $
Compares content in the Domain value vs. lexical
value.
e.g. If type is a float then 1.0 may be equivalent
to 1 even tough both are lexically different.
Parameters: value1 - Parameters: valu2 -
Checks that "content" string is valid
datatype.
If invalid a Datatype validation exception is thrown.
Parameters: content - A string containing the content to be validated throws InvalidDatatypeException if the content isinvalid according to the rules for the validators exception: InvalidDatatypeValueException - See Also:org.apache.xerces.validators.datatype.InvalidDatatypeValueException