java.lang.Object
org.apache.jena.datatypes.BaseDatatype
org.apache.jena.datatypes.xsd.XSDDatatype
org.apache.jena.datatypes.xsd.XSDbinary
- All Implemented Interfaces:
RDFDatatype
- Direct Known Subclasses:
XSDbase64Binary
,XSDhexBinary
Root class for XSD datatypes with binary values, xsd:hexBinary and xsd:base64Binary.
The binary value is stored as a byte[] in the LiteralLabel.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.datatypes.xsd.XSDDatatype
XSDDatatype.XSDGenericType
Nested 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
-
Method Summary
Modifier and TypeMethodDescriptionint
getHashCode
(LiteralLabel lit) Default implementation of getHashCode() delegates to the default from the literal label.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.Methods inherited from class org.apache.jena.datatypes.xsd.XSDDatatype
extendedTypeDefinition, getJavaClass, isBaseTypeCompatible, isValidLiteral, loadXSDSimpleTypes, main, parse, parseValidated, trimPlus, unparse
Methods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, getURI, isValid, langTagCompatible, normalizeSubType, toString
-
Method Details
-
isValidValue
Test whether the given object is a legal value form of this datatype. Brute force implementation.- Specified by:
isValidValue
in interfaceRDFDatatype
- Overrides:
isValidValue
in classBaseDatatype
-
isEqual
Compares two instances of values of the given datatype.- Specified by:
isEqual
in interfaceRDFDatatype
- Overrides:
isEqual
in classXSDDatatype
-
getHashCode
Description copied from class:BaseDatatype
Default implementation of getHashCode() delegates to the default from the literal label.- Specified by:
getHashCode
in interfaceRDFDatatype
- Overrides:
getHashCode
in classBaseDatatype
-