public class MemLiteral extends SimpleLiteral implements MemValue
EMPTY_LIST| Constructor and Description |
|---|
MemLiteral(Object creator,
String label)
Creates a new Literal which will get the supplied label.
|
MemLiteral(Object creator,
String label,
IRI datatype)
Creates a new Literal which will get the supplied label and datatype.
|
MemLiteral(Object creator,
String label,
String lang)
Creates a new Literal which will get the supplied label and language code.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectStatement(MemStatement st)
Adds a statement to this MemValue's list of statements for which it is the object.
|
void |
cleanSnapshotsFromObjectStatements(int currentSnapshot)
Removes statements from old snapshots (those that have expired at or before the specified snapshot version) from
this MemValue's list of statements for which it is the object.
|
Object |
getCreator()
Returns the object that created this MemValue.
|
int |
getObjectStatementCount()
Gets the number of statements for which this MemValue is the object.
|
MemStatementList |
getObjectStatementList()
Gets the list of statements for which this MemValue is the object.
|
boolean |
hasStatements()
Checks whether this MemValue has any statements.
|
void |
removeObjectStatement(MemStatement st)
Removes a statement from this MemValue's list of statements for which it is the object.
|
booleanValue, byteValue, calendarValue, decimalValue, doubleValue, equals, floatValue, getDatatype, getLabel, getLanguage, getXsdDatatype, hashCode, integerValue, intValue, longValue, setDatatype, setDatatype, setLabel, setLanguage, shortValue, stringValue, toStringtemporalAccessorValue, temporalAmountValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitisBNode, isIRI, isLiteral, isResource, isTriple, stringValuepublic MemLiteral(Object creator, String label)
creator - The object that is creating this MemLiteral.label - The label for this literal.public MemLiteral(Object creator, String label, String lang)
creator - The object that is creating this MemLiteral.label - The label for this literal.lang - The language code of the supplied label.public Object getCreator()
MemValuegetCreator in interface MemValuepublic boolean hasStatements()
MemValuehasStatements in interface MemValuepublic MemStatementList getObjectStatementList()
MemValuegetObjectStatementList in interface MemValuepublic int getObjectStatementCount()
MemValuegetObjectStatementCount in interface MemValuepublic void addObjectStatement(MemStatement st)
MemValueaddObjectStatement in interface MemValuepublic void removeObjectStatement(MemStatement st)
MemValueremoveObjectStatement in interface MemValuepublic void cleanSnapshotsFromObjectStatements(int currentSnapshot)
MemValuecleanSnapshotsFromObjectStatements in interface MemValuecurrentSnapshot - The current snapshot version.Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.