public interface LiteralLabel
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Answer true iff this literal is syntactically equal to
other . |
RDFDatatype |
getDatatype()
Answer the datatype of this literal, null if it is untyped.
|
String |
getDatatypeURI()
Answer the datatype URI of this literal, null if it untyped.
|
int |
getDefaultHashcode()
Answer the default hash value, suitable for datatypes which have values
which support hashCode() naturally: it is derived from its value if it is
well-formed and otherwise from its lexical form.
|
Object |
getIndexingValue()
Answer the value used to index this literal
TODO Consider pushing indexing decisions down to the datatype
|
String |
getLexicalForm()
Answer the lexical form of this literal, constructing it on-the-fly
(and remembering it) if necessary.
|
Object |
getValue()
Answer a suitable instance of a Java class representing this literal's
value.
|
int |
hashCode()
Answer the hashcode of this literal, derived from its value if it's
well-formed and otherwise its lexical form.
|
boolean |
isWellFormed()
Answer true iff this is a well-formed literal.
|
boolean |
isWellFormedRaw()
Answer true iff the wellformed flag is true.
|
boolean |
isXML()
Answer true iff this is a well-formed XML literal.
|
String |
language()
Answer the language associated with this literal (the empty string if
there's no language).
|
boolean |
sameValueAs(LiteralLabel other)
Answer true if this literal represents the same (abstract) value as
the other one.
|
String |
toString() |
String |
toString(boolean quoting)
Answer a human-acceptable representation of this literal value.
|
boolean isXML()
boolean isWellFormed()
boolean isWellFormedRaw()
String toString(boolean quoting)
String getLexicalForm()
Object getIndexingValue()
String language()
Object getValue() throws DatatypeFormatException
DatatypeFormatException
RDFDatatype getDatatype()
String getDatatypeURI()
boolean equals(Object other)
other
.
Note: this is not sameValueAs
.boolean sameValueAs(LiteralLabel other)
int hashCode()
int getDefaultHashcode()
Licenced under the Apache License, Version 2.0