public class XSDDouble extends XSDDatatype
XSDDatatype.XSDGenericTypeBaseDatatype.TypedValueXSD, XSDanyURI, XSDbase64Binary, XSDboolean, XSDbyte, XSDdate, XSDdateTime, XSDdateTimeStamp, XSDdayTimeDuration, XSDdecimal, XSDdouble, XSDduration, XSDENTITY, XSDfloat, XSDgDay, XSDgMonth, XSDgMonthDay, XSDgYear, XSDgYearMonth, XSDhexBinary, XSDID, XSDIDREF, XSDint, XSDinteger, XSDlanguage, XSDlong, XSDName, XSDNCName, XSDnegativeInteger, XSDNMTOKEN, XSDnonNegativeInteger, XSDnonPositiveInteger, XSDnormalizedString, XSDNOTATION, XSDpositiveInteger, XSDQName, XSDshort, XSDstring, XSDtime, XSDtoken, XSDunsignedByte, XSDunsignedInt, XSDunsignedLong, XSDunsignedShort, XSDyearMonthDuration| Constructor and Description |
|---|
XSDDouble(String typeName)
Constructor.
|
XSDDouble(String typeName,
Class<?> javaClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEqual(LiteralLabel value1,
LiteralLabel value2)
Compares two instances of values of the given datatype.
|
boolean |
isValidValue(Object valueForm)
Test whether the given object is a legal value form
of this datatype.
|
Object |
parse(String lexicalForm)
Parse a lexical form of this datatype to a value
|
Object |
parseValidated(String lex)
Parse a validated lexical form.
|
String |
unparse(Object value)
Convert a value of this datatype out
to lexical form.
|
extendedTypeDefinition, getJavaClass, isBaseTypeCompatible, isValidLiteral, loadXSDSimpleTypes, main, trimPluscannonicalise, getHashCode, getURI, isValid, langTagCompatible, normalizeSubType, toStringpublic XSDDouble(String typeName)
typeName - the name of the XSD type to be instantiated, this is
used to lookup a type definition from the Xerces schema factory.public XSDDouble(String typeName, Class<?> javaClass)
typeName - the name of the XSD type to be instantiated, this is
used to lookup a type definition from the Xerces schema factory.javaClass - the java class for which this xsd type is to be
treated as the cannonical representationpublic boolean isValidValue(Object valueForm)
isValidValue in interface RDFDatatypeisValidValue in class BaseDatatypepublic Object parse(String lexicalForm) throws DatatypeFormatException
parse in interface RDFDatatypeparse in class XSDDatatypeDatatypeFormatException - if the lexical form is not legalpublic String unparse(Object value)
XSDDatatypeunparse in interface RDFDatatypeunparse in class XSDDatatypepublic Object parseValidated(String lex)
parseValidated in class XSDDatatypepublic boolean isEqual(LiteralLabel value1, LiteralLabel value2)
isEqual in interface RDFDatatypeisEqual in class XSDDatatypeLicenced under the Apache License, Version 2.0