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, toString
temporalAccessorValue, temporalAmountValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isBNode, isIRI, isLiteral, isResource, isTriple, stringValue
public 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()
MemValue
getCreator
in interface MemValue
public boolean hasStatements()
MemValue
hasStatements
in interface MemValue
public MemStatementList getObjectStatementList()
MemValue
getObjectStatementList
in interface MemValue
public int getObjectStatementCount()
MemValue
getObjectStatementCount
in interface MemValue
public void addObjectStatement(MemStatement st)
MemValue
addObjectStatement
in interface MemValue
public void removeObjectStatement(MemStatement st)
MemValue
removeObjectStatement
in interface MemValue
public void cleanSnapshotsFromObjectStatements(int currentSnapshot)
MemValue
cleanSnapshotsFromObjectStatements
in interface MemValue
currentSnapshot
- The current snapshot version.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.