|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.model.impl.LiteralImpl
An implementation of the Literal interface.
| Constructor Summary | |
LiteralImpl(String label)
Creates a new Literal which will get the supplied label, but no language tag or datatype (=null). |
|
LiteralImpl(String label,
String language)
Creates a new Literal which will get the supplied label and language tag. |
|
LiteralImpl(String label,
URI datatype)
Creates a new Literal which will get the supplied label and datatype. |
|
| Method Summary | |
int |
compareTo(Object o)
|
boolean |
equals(Object o)
Compares a literal object to another object. |
URI |
getDatatype()
Gets the datatype for this literal. |
String |
getLabel()
Gets the label of this literal. |
String |
getLanguage()
Gets the language tag for this literal, normalized to lowercase. |
org.openrdf.sesame.sail.StatementIterator |
getObjectStatements()
Gets all statements from the RDF graph for which this value is the object. |
int |
hashCode()
The hash code of a literal is defined as the hash code of its label: label.hashCode(). |
String |
toString()
Returns the label of the literal. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LiteralImpl(String label)
label - The label for this literal.
public LiteralImpl(String label,
String language)
label - The label for this literal.language - The language tag of the supplied label, or null
if not specified.
public LiteralImpl(String label,
URI datatype)
label - The label for this literal.datatype - The datatype of the supplied label, or null
if not specified.| Method Detail |
public String getLabel()
Literal
getLabel in interface Literalpublic String getLanguage()
Literal
getLanguage in interface Literalpublic URI getDatatype()
Literal
getDatatype in interface Literalpublic boolean equals(Object o)
Literal
equals in interface Literalpublic int hashCode()
Literal
hashCode in interface Literalpublic int compareTo(Object o)
compareTo in interface Comparablepublic String toString()
public org.openrdf.sesame.sail.StatementIterator getObjectStatements()
throws GraphException
Value
getObjectStatements in interface ValueGraphException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||