public class XSDFloat extends XSDDatatype
XSDDatatype.XSDGenericType
BaseDatatype.TypedValue
XSD, 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 |
---|
XSDFloat(String typeName)
Constructor.
|
XSDFloat(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, trimPlus
cannonicalise, getHashCode, getURI, isValid, langTagCompatible, normalizeSubType, toString
public XSDFloat(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 XSDFloat(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 RDFDatatype
isValidValue
in class BaseDatatype
public Object parse(String lexicalForm) throws DatatypeFormatException
parse
in interface RDFDatatype
parse
in class XSDDatatype
DatatypeFormatException
- if the lexical form is not legalpublic String unparse(Object value)
XSDDatatype
unparse
in interface RDFDatatype
unparse
in class XSDDatatype
public Object parseValidated(String lex)
parseValidated
in class XSDDatatype
public boolean isEqual(LiteralLabel value1, LiteralLabel value2)
isEqual
in interface RDFDatatype
isEqual
in class XSDDatatype
Licenced under the Apache License, Version 2.0