org.openrdf.sesame.sailimpl.memory
Interface ResourceNode

All Superinterfaces:
Comparable, Resource, Serializable, Value, ValueNode
All Known Implementing Classes:
BNodeNode, URINode

public interface ResourceNode
extends ValueNode, Resource

An extension of ValueNode giving it subject statements.

Version:
$Revision: 1.9.4.2 $
Author:
Arjohn Kampman, Jeen Broekstra

Field Summary
static StatementList EMPTY_LIST
           
 
Method Summary
 void addSubjectStatement(Statement st)
          Adds a statement to this ResourceNode's list of statements for which it is the subject.
 void clearCache()
          clears all caches for direct type, subclass and subproperty relations.
 StatementIterator getDirectSubClassStatements()
           
 StatementIterator getDirectSubPropertyStatements()
           
 StatementIterator getDirectTypeStatements()
           
 int getSubjectStatementCount()
          Gets the amount of Statements for which this ResourceNode is the subject.
 StatementList getSubjectStatementList()
           
 boolean isDirectSubClass(Resource aClass)
           
 boolean isDirectSubProperty(Resource aProperty)
           
 boolean isDirectType(Resource aClass)
           
 void removeSubjectStatement(Statement st)
          Removes a statement from this ResourceNode's list of statements for which it is the subject.
 
Methods inherited from interface org.openrdf.sesame.sailimpl.memory.ValueNode
addObjectStatement, getObjectStatementCount, getObjectStatementList, getRdfSource, removeObjectStatement
 
Methods inherited from interface org.openrdf.model.Value
getObjectStatements
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.openrdf.model.Resource
addProperty, getSubjectStatements
 

Field Detail

EMPTY_LIST

public static final StatementList EMPTY_LIST
Method Detail

getSubjectStatementList

public StatementList getSubjectStatementList()

getSubjectStatementCount

public int getSubjectStatementCount()
Gets the amount of Statements for which this ResourceNode is the subject.

Returns:
An integer larger than or equal to 0.

addSubjectStatement

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


removeSubjectStatement

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


getDirectTypeStatements

public StatementIterator getDirectTypeStatements()

getDirectSubClassStatements

public StatementIterator getDirectSubClassStatements()

getDirectSubPropertyStatements

public StatementIterator getDirectSubPropertyStatements()

isDirectType

public boolean isDirectType(Resource aClass)

isDirectSubClass

public boolean isDirectSubClass(Resource aClass)

isDirectSubProperty

public boolean isDirectSubProperty(Resource aProperty)

clearCache

public void clearCache()
clears all caches for direct type, subclass and subproperty relations.



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