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, waitisResourcepublic String toString()
URIpublic String stringValue()
ValueLiteral's label, a
IRI's URI or a BNode's ID.stringValue in interface Valuepublic String getNamespace()
IRIThe namespace is defined as per the algorithm described in the class documentation.
getNamespace in interface IRIgetNamespace in interface URIpublic String getLocalName()
IRIThe local name is defined as per the algorithm described in the class documentation.
getLocalName in interface IRIgetLocalName in interface URIpublic boolean equals(Object other)
IRIpublic int hashCode()
IRIpublic 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 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()
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-2020 Eclipse Foundation. All Rights Reserved.