java.lang.Object
org.apache.jena.datatypes.BaseDatatype
org.apache.jena.datatypes.xsd.XSDDatatype
org.apache.jena.datatypes.xsd.impl.XSDBaseStringType
- All Implemented Interfaces:
RDFDatatype
Base implementation for all string datatypes derived from
xsd:string. The only purpose of this place holder is
to support the isValidLiteral tests across string types.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.datatypes.xsd.XSDDatatype
XSDDatatype.XSDGenericTypeNested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
BaseDatatype.TypedValue -
Field Summary
Fields inherited from class org.apache.jena.datatypes.xsd.XSDDatatype
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 Summary
ConstructorsConstructorDescriptionXSDBaseStringType(String typeName) Constructor.XSDBaseStringType(String typeName, Class<?> javaClass) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncannonicalise(Object value) Canonicalise a java Object value to a normal form.booleanisEqual(LiteralLabel value1, LiteralLabel value2) Compares two instances of values of the given datatype.Methods inherited from class org.apache.jena.datatypes.xsd.XSDDatatype
extendedTypeDefinition, getJavaClass, isBaseTypeCompatible, isValidLiteral, loadXSDSimpleTypes, main, parse, parseValidated, trimPlus, unparseMethods inherited from class org.apache.jena.datatypes.BaseDatatype
equals, getHashCode, getURI, hashCode, isValid, isValidValue, langTagCompatible, normalizeSubType, toString
-
Constructor Details
-
XSDBaseStringType
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.
-
XSDBaseStringType
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.javaClass- the java class for which this xsd type is to be treated as the cannonical representation
-
-
Method Details
-
isEqual
Compares two instances of values of the given datatype. This ignores lang tags and optionally allows plain literals to equate to strings. The latter option is currently set by a static global flag in LiteralLabel.- Specified by:
isEqualin interfaceRDFDatatype- Overrides:
isEqualin classXSDDatatype
-
cannonicalise
Canonicalise a java Object value to a normal form. Used when objects are passed in as xsd:string type to ensure that indexing of typed literals works.- Specified by:
cannonicalisein interfaceRDFDatatype- Overrides:
cannonicalisein classBaseDatatype
-