public class MemBNode extends SimpleBNode implements MemResource
EMPTY_LIST| Constructor and Description |
|---|
MemBNode(Object creator,
String id)
Creates a new MemBNode for a bnode ID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContextStatement(MemStatement st)
Adds a statement to this MemResource's list of statements for which it represents the context.
|
void |
addObjectStatement(MemStatement st)
Adds a statement to this MemValue's list of statements for which it is the object.
|
void |
addSubjectStatement(MemStatement st)
Adds a statement to this MemResource's list of statements for which it is the subject.
|
void |
cleanSnapshotsFromContextStatements(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 context.
|
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.
|
void |
cleanSnapshotsFromSubjectStatements(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 subject.
|
int |
getContextStatementCount()
Gets the number of statements for which this MemResource represents the context.
|
MemStatementList |
getContextStatementList()
Gets the list of statements for which this MemResource represents the context.
|
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.
|
int |
getSubjectStatementCount()
Gets the number of statements for which this MemResource is the subject.
|
MemStatementList |
getSubjectStatementList()
Gets the list of statements for which this MemResource is the subject.
|
boolean |
hasStatements()
Checks whether this MemValue has any statements.
|
void |
removeContextStatement(MemStatement st)
Removes a statement from this MemResource's list of statements for which it represents the context.
|
void |
removeObjectStatement(MemStatement st)
Removes a statement from this MemValue's list of statements for which it is the object.
|
void |
removeSubjectStatement(MemStatement st)
Removes a statement from this MemResource's list of statements for which it is the subject.
|
getID, setIDequals, hashCode, stringValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisResourcepublic Object getCreator()
MemValuegetCreator in interface MemValuepublic boolean hasStatements()
MemValuehasStatements in interface MemValuepublic MemStatementList getSubjectStatementList()
MemResourcegetSubjectStatementList in interface MemResourcepublic int getSubjectStatementCount()
MemResourcegetSubjectStatementCount in interface MemResourcepublic void addSubjectStatement(MemStatement st)
MemResourceaddSubjectStatement in interface MemResourcepublic void removeSubjectStatement(MemStatement st)
MemResourceremoveSubjectStatement in interface MemResourcepublic void cleanSnapshotsFromSubjectStatements(int currentSnapshot)
MemResourcecleanSnapshotsFromSubjectStatements in interface MemResourcecurrentSnapshot - The current snapshot version.public 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.public MemStatementList getContextStatementList()
MemResourcegetContextStatementList in interface MemResourcepublic int getContextStatementCount()
MemResourcegetContextStatementCount in interface MemResourcepublic void addContextStatement(MemStatement st)
MemResourceaddContextStatement in interface MemResourcepublic void removeContextStatement(MemStatement st)
MemResourceremoveContextStatement in interface MemResourcepublic void cleanSnapshotsFromContextStatements(int currentSnapshot)
MemResourcecleanSnapshotsFromContextStatements in interface MemResourcecurrentSnapshot - The current snapshot version.Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.