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.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 -
Method Summary
Modifier and TypeMethodDescriptionintgetHashCode(LiteralLabel lit) Default implementation of getHashCode() delegates to the default from the literal label.booleanisEqual(LiteralLabel value1, LiteralLabel value2) Compares two instances of values of the given datatype.booleanisValidValue(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, unparseMethods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, equals, getURI, hashCode, 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:
isValidValuein interfaceRDFDatatype- Overrides:
isValidValuein classBaseDatatype
-
isEqual
Compares two instances of values of the given datatype.- Specified by:
isEqualin interfaceRDFDatatype- Overrides:
isEqualin classXSDDatatype
-
getHashCode
Description copied from class:BaseDatatypeDefault implementation of getHashCode() delegates to the default from the literal label.- Specified by:
getHashCodein interfaceRDFDatatype- Overrides:
getHashCodein classBaseDatatype
-