org.openrdf.sesame.sailimpl.memory
Interface ValueNode

All Superinterfaces:
Comparable, Serializable, Value
All Known Subinterfaces:
ResourceNode
All Known Implementing Classes:
BNodeNode, LiteralNode, URINode

public interface ValueNode
extends Value

Version:
$Revision: 1.7.4.2 $
Author:
Arjohn Kampman

Method Summary
 void addObjectStatement(Statement st)
          Adds a statement to this ValueNode's list of statements for which it is the object.
 int getObjectStatementCount()
          Gets the amount of Statements for which this ValueNode is the object.
 StatementList getObjectStatementList()
           
 RdfSource getRdfSource()
          Returns the RdfSource that contains this ValueNode.
 void removeObjectStatement(Statement st)
          Removes a statement from this ValueNode's list of statements for which it is the object.
 
Methods inherited from interface org.openrdf.model.Value
getObjectStatements
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getObjectStatementList

public StatementList getObjectStatementList()

getObjectStatementCount

public int getObjectStatementCount()
Gets the amount of Statements for which this ValueNode is the object.

Returns:
An integer larger than or equal to 0.

addObjectStatement

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


removeObjectStatement

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


getRdfSource

public RdfSource getRdfSource()
Returns the RdfSource that contains this ValueNode. ValueNodes are only unique within a single repository, but an application could use several repository at the same time, passing ValueNodes generated by one Sail to another Sail. In such situations, the ValueNode of the first Sail cannot be used by the second Sail.



Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.