org.jrdf.graph
Class TripleImpl

java.lang.Object
  extended by org.jrdf.graph.AbstractTriple
      extended by org.jrdf.graph.TripleImpl
All Implemented Interfaces:
Serializable, Triple

public class TripleImpl
extends AbstractTriple

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jrdf.graph.AbstractTriple
objectNode, predicateNode, subjectNode
 
Constructor Summary
TripleImpl(SubjectNode subject, PredicateNode predicate, ObjectNode object)
          Constructor for this Triple, only to be used by the NodeFactory.
 
Method Summary
 boolean isGrounded()
          Returns true if the subject and object nodes are not blank nodes.
 
Methods inherited from class org.jrdf.graph.AbstractTriple
equals, getObject, getPredicate, getSubject, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TripleImpl

public TripleImpl(SubjectNode subject,
                  PredicateNode predicate,
                  ObjectNode object)
Constructor for this Triple, only to be used by the NodeFactory.

Parameters:
subject - The subject node of this triple.
predicate - The predicate node of this triple.
object - The object node of this triple.
Method Detail

isGrounded

public boolean isGrounded()
Description copied from interface: Triple
Returns true if the subject and object nodes are not blank nodes.

Specified by:
isGrounded in interface Triple
Overrides:
isGrounded in class AbstractTriple
Returns:
true if the subject and object nodes are not blank nodes.