public class MemStatement extends ContextStatement
Constructor and Description |
---|
MemStatement(MemResource subject,
MemIRI predicate,
MemValue object,
MemResource context,
boolean explicit,
int sinceSnapshot)
Creates a new MemStatement with the supplied subject, predicate, object and context.
|
MemStatement(MemResource subject,
MemIRI predicate,
MemValue object,
MemResource context,
int sinceSnapshot)
Creates a new MemStatement with the supplied subject, predicate, object and context and marks it as 'explicit'.
|
Modifier and Type | Method and Description |
---|---|
void |
addToComponentLists()
Lets this statement add itself to the appropriate statement lists of its subject, predicate, object and context.
|
MemResource |
getContext()
Gets the context of this statement.
|
MemValue |
getObject()
Gets the object of this statement.
|
MemIRI |
getPredicate()
Gets the predicate of this statement.
|
int |
getSinceSnapshot() |
MemResource |
getSubject()
Gets the subject of this statement.
|
int |
getTillSnapshot() |
boolean |
isExplicit() |
boolean |
isInSnapshot(int snapshot) |
void |
removeFromComponentLists()
Lets this statement remove itself from the appropriate statement lists of its subject, predicate, object and
context.
|
void |
setExplicit(boolean explicit) |
void |
setSinceSnapshot(int snapshot) |
void |
setTillSnapshot(int snapshot) |
toString
equals, hashCode
public MemStatement(MemResource subject, MemIRI predicate, MemValue object, MemResource context, int sinceSnapshot)
public MemStatement(MemResource subject, MemIRI predicate, MemValue object, MemResource context, boolean explicit, int sinceSnapshot)
public MemResource getSubject()
Statement
getSubject
in interface Statement
getSubject
in class SimpleStatement
public MemIRI getPredicate()
Statement
getPredicate
in interface Statement
getPredicate
in class SimpleStatement
public MemValue getObject()
Statement
getObject
in interface Statement
getObject
in class SimpleStatement
public MemResource getContext()
Statement
getContext
in interface Statement
getContext
in class ContextStatement
public void setSinceSnapshot(int snapshot)
public int getSinceSnapshot()
public void setTillSnapshot(int snapshot)
public int getTillSnapshot()
public boolean isInSnapshot(int snapshot)
public void setExplicit(boolean explicit)
public boolean isExplicit()
public void addToComponentLists()
public void removeFromComponentLists()
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.