org.openrdf.sesame.query.serql.parser
Class PathElement

java.lang.Object
  extended byorg.openrdf.sesame.query.serql.parser.PathElement
Direct Known Subclasses:
ReifiedPathElement

public class PathElement
extends Object


Constructor Summary
PathElement(List subjectVars, Var edge, List objectVars)
          Creates a new PathElement.
 
Method Summary
 Var getEdge()
           
 List getObjectVars()
           
 List getSubjectVars()
           
 List getTriplePatterns()
          Creates a list of triple patterns that can represent this path element.
 String toString()
          Returns String representation of this Path_expr.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathElement

public PathElement(List subjectVars,
                   Var edge,
                   List objectVars)
Creates a new PathElement.

Parameters:
subjectVars - Left node of this PathElement.
edge - Edge of this PathElement.
objectVars - Right node of this PathElement.
Method Detail

getSubjectVars

public List getSubjectVars()

getEdge

public Var getEdge()

getObjectVars

public List getObjectVars()

getTriplePatterns

public List getTriplePatterns()
Creates a list of triple patterns that can represent this path element.

Returns:
A List of TriplePattern objects.

toString

public String toString()
Returns String representation of this Path_expr.

Returns:
String representation of this Path_expr.


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