org.dftproject.genesis.core.data.nodes
Class Statement

java.lang.Object
  extended by org.dftproject.genesis.core.data.nodes.Statement

public class Statement
extends java.lang.Object

A statement (subject, predicate, object, and graph).


Constructor Summary
Statement(IResourceNode graph, IResourceNode subject, IResourceNode predicate, INode object)
          Creates a statement.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 IResourceNode getGraph()
          Returns the graph.
 INode getObject()
          Returns the object.
 IResourceNode getPredicate()
          Returns the predicate.
 IResourceNode getSubject()
          Returns the subject.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statement

public Statement(IResourceNode graph,
                 IResourceNode subject,
                 IResourceNode predicate,
                 INode object)
Creates a statement.

Parameters:
graph - the graph
subject - the subject
predicate - the predicate
object - the object
Method Detail

getGraph

public IResourceNode getGraph()
Returns the graph.

Returns:
the graph

getSubject

public IResourceNode getSubject()
Returns the subject.

Returns:
the subject

getPredicate

public IResourceNode getPredicate()
Returns the predicate.

Returns:
the predicate

getObject

public INode getObject()
Returns the object.

Returns:
the object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object