public class MemURI extends Object implements URI, MemResource
EMPTY_LIST| Constructor and Description |
|---|
MemURI(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 a URI object 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 of this URI.
|
String |
getNamespace()
Gets the namespace of this URI.
|
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()
The hash code of a URI is defined as the hash code of its
String-representation: toString().hashCode.
|
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.
|
public String toString()
URIpublic String stringValue()
ValueLiteral's label, a URI's URI or a BNode's ID.stringValue in interface Valuepublic String getNamespace()
URIgetNamespace in interface URIpublic String getLocalName()
URIgetLocalName in interface URIpublic boolean equals(Object other)
URIpublic int hashCode()
URIpublic 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 © 2001–2015 Aduna. All rights reserved.