|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.model.impl.LiteralImpl
org.openrdf.sesame.sailimpl.memory.LiteralNode
An extension of Literal giving it node properties.
| Constructor Summary | |
LiteralNode(RdfSource source,
String label,
String lang)
Creates a new Literal which will get the supplied label and language code. |
|
LiteralNode(RdfSource source,
String label,
URI datatype)
Creates a new Literal which will get the supplied label and datatype. |
|
| Method Summary | |
void |
addObjectStatement(Statement st)
Adds a statement to this LiteralNode's list of statements for which it is the object. |
int |
getObjectStatementCount()
Gets the amount of Statements for which this LiteralNode is the object. |
StatementList |
getObjectStatementList()
|
StatementIterator |
getObjectStatements()
Gets the list of Statements for which this LiteralNode is the object. |
RdfSource |
getRdfSource()
Returns the RdfSource that contains this ValueNode. |
void |
removeObjectStatement(Statement st)
Removes a statement from this ResourceNode's list of statements for which it is the object. |
| Methods inherited from class org.openrdf.model.impl.LiteralImpl |
compareTo, equals, getDatatype, getLabel, getLanguage, hashCode, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Constructor Detail |
public LiteralNode(RdfSource source,
String label,
String lang)
source - The Sail instance that created this LiteralNode.label - The label for this literal.lang - The language code of the supplied label, or null if not
specified.
public LiteralNode(RdfSource source,
String label,
URI datatype)
source - The Sail instance that created this LiteralNode.label - The label for this literal.datatype - The datatype of the supplied label, or null if not
specified.| Method Detail |
public StatementList getObjectStatementList()
getObjectStatementList in interface ValueNodepublic StatementIterator getObjectStatements()
getObjectStatements in interface ValuegetObjectStatements in class LiteralImplpublic int getObjectStatementCount()
getObjectStatementCount in interface ValueNodepublic void addObjectStatement(Statement st)
addObjectStatement in interface ValueNodepublic void removeObjectStatement(Statement st)
removeObjectStatement in interface ValueNodepublic RdfSource getRdfSource()
ValueNode
getRdfSource in interface ValueNode
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||