org.openrdf.sail.memory.model
Interface MemValue

All Superinterfaces:
Serializable, Value
All Known Subinterfaces:
MemResource
All Known Implementing Classes:
BooleanMemLiteral, CalendarMemLiteral, DecimalMemLiteral, IntegerMemLiteral, MemBNode, MemLiteral, MemURI, NumericMemLiteral

public interface MemValue
extends Value

A MemoryStore-specific extension of the Value interface, giving it node properties.


Field Summary
static MemStatementList EMPTY_LIST
          A shared empty MemStatementList that is returned by MemURI and MemBNode to represent an empty list.
 
Method Summary
 void addObjectStatement(MemStatement st)
          Adds a statement to this MemValue's list of statements for which it is the object.
 Object getCreator()
          Returns the object that created this MemValue.
 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.
 void removeObjectStatement(MemStatement st)
          Removes a statement from this MemValue's list of statements for which it is the object.
 
Methods inherited from interface org.openrdf.model.Value
stringValue
 

Field Detail

EMPTY_LIST

static final MemStatementList EMPTY_LIST
A shared empty MemStatementList that is returned by MemURI and MemBNode to represent an empty list. The use of a shared list reduces memory usage.

Method Detail

getCreator

Object getCreator()
Returns the object that created this MemValue. MemValues are only unique within a single repository, but an application could use several repositories at the same time, passing MemValues generated by one Sail to another Sail. In such situations, the MemValue of the first Sail cannot be used by the second Sail.


getObjectStatementList

MemStatementList getObjectStatementList()
Gets the list of statements for which this MemValue is the object.

Returns:
A MemStatementList containing the statements.

getObjectStatementCount

int getObjectStatementCount()
Gets the number of statements for which this MemValue is the object.

Returns:
An integer larger than or equal to 0.

addObjectStatement

void addObjectStatement(MemStatement st)
Adds a statement to this MemValue's list of statements for which it is the object.


removeObjectStatement

void removeObjectStatement(MemStatement st)
Removes a statement from this MemValue's list of statements for which it is the object.



Copyright © 2001-2007 Aduna. All Rights Reserved.