org.nsdl.mptstore.query.component
Class BasicTriplePattern

java.lang.Object
  extended by org.nsdl.mptstore.query.component.BasicTriplePattern
All Implemented Interfaces:
TriplePattern

public class BasicTriplePattern
extends java.lang.Object
implements TriplePattern

Generic implementation of TriplePattern.

Author:
birkland

Constructor Summary
BasicTriplePattern(NodePattern<SubjectNode> s, NodePattern<PredicateNode> p, NodePattern<ObjectNode> o)
          Construct a BasicTriplePattern.
 
Method Summary
 NodePattern<ObjectNode> getObject()
          Get the object pattern of this triple pattern.
 NodePattern<PredicateNode> getPredicate()
          Get the predicate pattern of this triple pattern.
 NodePattern<SubjectNode> getSubject()
          Get the subject pattern of this triple pattern.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicTriplePattern

public BasicTriplePattern(NodePattern<SubjectNode> s,
                          NodePattern<PredicateNode> p,
                          NodePattern<ObjectNode> o)
Construct a BasicTriplePattern.

Parameters:
s - the subject pattern.
p - the predicate pattern.
o - the object pattern.
Method Detail

getSubject

public NodePattern<SubjectNode> getSubject()
Get the subject pattern of this triple pattern.

Specified by:
getSubject in interface TriplePattern
Returns:
the subject pattern.

getObject

public NodePattern<ObjectNode> getObject()
Get the object pattern of this triple pattern.

Specified by:
getObject in interface TriplePattern
Returns:
the object pattern.

getPredicate

public NodePattern<PredicateNode> getPredicate()
Get the predicate pattern of this triple pattern.

Specified by:
getPredicate in interface TriplePattern
Returns:
the predicate pattern.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object