Base implementation for all numeric datatypes derived from
xsd:decimal. The only purpose of this place holder is
to support the isValidLiteral tests across numeric types. Note
that float and double are not included in this set.
author: Dave Reynolds version: $Revision: 1.21 $ on $Date: 2008/01/23 16:21:05 $
cannonicalise(Object value) Cannonicalise a java Object value to a normal form.
Primarily used in cases such as xsd:integer to reduce
the Java object representation to the narrowest of the Number
subclasses to ensure that indexing of typed literals works.
Constructor.
Parameters: typeName - the name of the XSD type to be instantiated, this is used to lookup a type definition from the Xerces schema factory.
Constructor.
Parameters: typeName - the name of the XSD type to be instantiated, this is used to lookup a type definition from the Xerces schema factory. Parameters: javaClass - the java class for which this xsd type is to betreated as the cannonical representation
Cannonicalise a java Object value to a normal form.
Primarily used in cases such as xsd:integer to reduce
the Java object representation to the narrowest of the Number
subclasses to ensure that indexing of typed literals works.
Test whether the given LiteralLabel is a valid instance
of this datatype. This takes into accound typing information
as well as lexical form - for example an xsd:string is
never considered valid as an xsd:integer (even if it is
lexically legal like "1").
isValidValue
public boolean isValidValue(Object valueForm)(Code)
Test whether the given object is a legal value form
of this datatype. Brute force implementation.