java.lang.Object
org.apache.jena.cdt.CompositeDatatypeBase<Map<CDTKey,CDTValue>>
org.apache.jena.cdt.CompositeDatatypeMap
- All Implemented Interfaces:
org.apache.jena.datatypes.RDFDatatype
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompare(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2, boolean sortOrderingCompare) Assumes that the datatype of both of the given literals is cdt:Map.intgetHashCode(org.apache.jena.graph.impl.LiteralLabel lit) getURI()getValue(org.apache.jena.graph.impl.LiteralLabel lit) Assumes that the datatype of the given literal is cdt:Map.booleanisEqual(org.apache.jena.graph.impl.LiteralLabel lit1, org.apache.jena.graph.impl.LiteralLabel lit2) static booleanisMapLiteral(org.apache.jena.graph.impl.LiteralLabel lit) Returns true if the datatype URI of the givenLiteralLabelisuri.static booleanisMapLiteral(org.apache.jena.graph.Node n) Returns true if the given node is a literal withurias its datatype URI.booleanbooleanisValidLiteral(org.apache.jena.graph.impl.LiteralLabel lit) booleanisValidValue(Object value) unparseValue(Map<CDTKey, CDTValue> map) Methods inherited from class org.apache.jena.cdt.CompositeDatatypeBase
cannonicalise, extendedTypeDefinition, getJavaClass, normalizeSubType
-
Field Details
-
uri
- See Also:
-
type
-
-
Method Details
-
getURI
-
isValidValue
-
isValidLiteral
public boolean isValidLiteral(org.apache.jena.graph.impl.LiteralLabel lit) -
isValid
-
parse
public Map<CDTKey,CDTValue> parse(String lexicalForm) throws org.apache.jena.datatypes.DatatypeFormatException - Specified by:
parsein interfaceorg.apache.jena.datatypes.RDFDatatype- Specified by:
parsein classCompositeDatatypeBase<Map<CDTKey,CDTValue>> - Throws:
org.apache.jena.datatypes.DatatypeFormatException
-
unparse
-
unparseValue
- Specified by:
unparseValuein classCompositeDatatypeBase<Map<CDTKey,CDTValue>>
-
getHashCode
public int getHashCode(org.apache.jena.graph.impl.LiteralLabel lit) -
isEqual
public boolean isEqual(org.apache.jena.graph.impl.LiteralLabel lit1, org.apache.jena.graph.impl.LiteralLabel lit2) -
compare
public static int compare(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2, boolean sortOrderingCompare) throws ExprNotComparableException Assumes that the datatype of both of the given literals is cdt:Map. If 'sortOrderingCompare' is true, the two maps are compared as per the semantics for ORDER BY. If 'sortOrderingCompare' is false, the comparison applies the map-less-than semantics.- Throws:
ExprNotComparableException
-
isMapLiteral
public static boolean isMapLiteral(org.apache.jena.graph.Node n) Returns true if the given node is a literal withurias its datatype URI. Notice that this does not mean that this literal is actually valid; for checking validity, useisValidLiteral(LiteralLabel). -
isMapLiteral
public static boolean isMapLiteral(org.apache.jena.graph.impl.LiteralLabel lit) Returns true if the datatype URI of the givenLiteralLabelisuri. Notice that this does not mean that this LiteralLabel is actually valid; for checking validity, useisValidLiteral(LiteralLabel). -
getValue
public static Map<CDTKey,CDTValue> getValue(org.apache.jena.graph.impl.LiteralLabel lit) throws org.apache.jena.datatypes.DatatypeFormatException Assumes that the datatype of the given literal is cdt:Map.- Throws:
org.apache.jena.datatypes.DatatypeFormatException
-