org.jrdf.graph
Class AnyTriple

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

public final class AnyTriple
extends Object
implements Triple

See Also:
Serialized Form

Field Summary
static AnyTriple ANY_TRIPLE
          The any triple - represents an unconstrained triple (all subjects, predicates and objects).
 
Method Summary
 ObjectNode getObject()
          Obtains the object of this statement.
 PredicateNode getPredicate()
          Obtains the predicate of this statement.
 SubjectNode getSubject()
          Obtains the subject of this statement.
 boolean isGrounded()
          Returns true if the subject and object nodes are not blank nodes.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jrdf.graph.Triple
equals, hashCode
 

Field Detail

ANY_TRIPLE

public static final AnyTriple ANY_TRIPLE
The any triple - represents an unconstrained triple (all subjects, predicates and objects).

Method Detail

toString

public String toString()
Overrides:
toString in class Object

getSubject

public SubjectNode getSubject()
Description copied from interface: Triple
Obtains the subject of this statement.

Specified by:
getSubject in interface Triple
Returns:
an SubjectNode which is either a BlankNode or URIReference

getPredicate

public PredicateNode getPredicate()
Description copied from interface: Triple
Obtains the predicate of this statement.

Specified by:
getPredicate in interface Triple
Returns:
a PredicateNode which is a URIReference

getObject

public ObjectNode getObject()
Description copied from interface: Triple
Obtains the object of this statement.

Specified by:
getObject in interface Triple
Returns:
a ObjectNode which is either a BlankNode, URIReference or Literal

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
Returns:
true if the subject and object nodes are not blank nodes.