org.openrdf.sail.memory.model
Interface MemResource

All Superinterfaces:
MemValue, Resource, Serializable, Value
All Known Implementing Classes:
MemBNode, MemURI

public interface MemResource
extends MemValue, Resource

A MemoryStore-specific extension of Resource giving it subject statements.


Field Summary
 
Fields inherited from interface org.openrdf.sail.memory.model.MemValue
EMPTY_LIST
 
Method Summary
 void addContextStatement(MemStatement st)
          Adds a statement to this MemResource's list of statements for which it represents the context.
 void addSubjectStatement(MemStatement st)
          Adds a statement to this MemResource'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.
 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.
 void removeContextStatement(MemStatement st)
          Removes a statement from this MemResource's list of statements for which it represents the context.
 void removeSubjectStatement(MemStatement st)
          Removes a statement from this MemResource's list of statements for which it is the subject.
 
Methods inherited from interface org.openrdf.sail.memory.model.MemValue
addObjectStatement, getCreator, getObjectStatementCount, getObjectStatementList, removeObjectStatement
 
Methods inherited from interface org.openrdf.model.Value
stringValue
 

Method Detail

getSubjectStatementList

MemStatementList getSubjectStatementList()
Gets the list of statements for which this MemResource is the subject.

Returns:
a MemStatementList containing the statements.

getSubjectStatementCount

int getSubjectStatementCount()
Gets the number of statements for which this MemResource is the subject.

Returns:
An integer larger than or equal to 0.

addSubjectStatement

void addSubjectStatement(MemStatement st)
Adds a statement to this MemResource's list of statements for which it is the subject.


removeSubjectStatement

void removeSubjectStatement(MemStatement st)
Removes a statement from this MemResource's list of statements for which it is the subject.


getContextStatementList

MemStatementList getContextStatementList()
Gets the list of statements for which this MemResource represents the context.

Returns:
a MemStatementList containing the statements.

getContextStatementCount

int getContextStatementCount()
Gets the number of statements for which this MemResource represents the context.

Returns:
An integer larger than or equal to 0.

addContextStatement

void addContextStatement(MemStatement st)
Adds a statement to this MemResource's list of statements for which it represents the context.


removeContextStatement

void removeContextStatement(MemStatement st)
Removes a statement from this MemResource's list of statements for which it represents the context.



Copyright © 2001-2007 Aduna. All Rights Reserved.