public class MemIRI extends Object implements IRI, MemResource
EMPTY_LIST
Constructor and Description |
---|
MemIRI(Object creator,
String namespace,
String localName)
Creates a new MemURI for a URI.
|
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 |
addPredicateStatement(MemStatement st)
Adds a statement to this MemURI's list of statements for which it is the predicate.
|
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 |
cleanSnapshotsFromPredicateStatements(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 predicate.
|
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.
|
boolean |
equals(Object other)
Compares this IRI to another object.
|
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.
|
String |
getLocalName()
Gets the local name part of this IRI.
|
String |
getNamespace()
Gets the namespace part of this IRI.
|
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 |
getPredicateStatementCount()
Gets the number of Statements for which this MemURI is the predicate.
|
MemStatementList |
getPredicateStatementList()
Gets the list of statements for which this MemURI is the predicate.
|
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.
|
int |
hashCode()
Computes the hash code of this IRI.
|
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 |
removePredicateStatement(MemStatement st)
Removes a statement from this MemURI's list of statements for which it is the predicate.
|
void |
removeSubjectStatement(MemStatement st)
Removes a statement from this MemResource's list of statements for which it is the subject.
|
String |
stringValue()
Returns the String-value of a Value object.
|
String |
toString()
Returns the String-representation of this URI.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isResource
public String toString()
URI
public String stringValue()
Value
Literal
's label, a
IRI
's URI or a BNode
's ID.stringValue
in interface Value
public String getNamespace()
IRI
The namespace is defined as per the algorithm described in the class documentation.
getNamespace
in interface IRI
getNamespace
in interface URI
public String getLocalName()
IRI
The local name is defined as per the algorithm described in the class documentation.
getLocalName
in interface IRI
getLocalName
in interface URI
public boolean equals(Object other)
IRI
public int hashCode()
IRI
public Object getCreator()
MemValue
getCreator
in interface MemValue
public boolean hasStatements()
MemValue
hasStatements
in interface MemValue
public MemStatementList getSubjectStatementList()
MemResource
getSubjectStatementList
in interface MemResource
public int getSubjectStatementCount()
MemResource
getSubjectStatementCount
in interface MemResource
public void addSubjectStatement(MemStatement st)
MemResource
addSubjectStatement
in interface MemResource
public void removeSubjectStatement(MemStatement st)
MemResource
removeSubjectStatement
in interface MemResource
public void cleanSnapshotsFromSubjectStatements(int currentSnapshot)
MemResource
cleanSnapshotsFromSubjectStatements
in interface MemResource
currentSnapshot
- The current snapshot version.public MemStatementList getPredicateStatementList()
public int getPredicateStatementCount()
public void addPredicateStatement(MemStatement st)
public void removePredicateStatement(MemStatement st)
public void cleanSnapshotsFromPredicateStatements(int currentSnapshot)
currentSnapshot
- The current snapshot version.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.public MemStatementList getContextStatementList()
MemResource
getContextStatementList
in interface MemResource
public int getContextStatementCount()
MemResource
getContextStatementCount
in interface MemResource
public void addContextStatement(MemStatement st)
MemResource
addContextStatement
in interface MemResource
public void removeContextStatement(MemStatement st)
MemResource
removeContextStatement
in interface MemResource
public void cleanSnapshotsFromContextStatements(int currentSnapshot)
MemResource
cleanSnapshotsFromContextStatements
in interface MemResource
currentSnapshot
- The current snapshot version.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.