com.hp.hpl.jena.sparql.syntax
Class ElementPathBlock

java.lang.Object
  extended by com.hp.hpl.jena.sparql.syntax.Element
      extended by com.hp.hpl.jena.sparql.syntax.ElementPathBlock
All Implemented Interfaces:
TripleCollector

public class ElementPathBlock
extends Element
implements TripleCollector

A SPARQL BasicGraphPattern


Constructor Summary
ElementPathBlock()
           
ElementPathBlock(BasicPattern bgp)
           
 
Method Summary
 void addTriple(int index, com.hp.hpl.jena.graph.Triple t)
           
 void addTriple(com.hp.hpl.jena.graph.Triple t)
           
 void addTriple(TriplePath tp)
           
 void addTriplePath(int index, TriplePath tPath)
           
 void addTriplePath(TriplePath tPath)
           
 boolean equalTo(Element el2, NodeIsomorphismMap isoMap)
           
 PathBlock getPattern()
           
 int hashCode()
           
 boolean isEmpty()
           
 int mark()
           
 Iterator<TriplePath> patternElts()
           
 void visit(ElementVisitor v)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.syntax.Element
equals, toString, varsMentioned
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementPathBlock

public ElementPathBlock()

ElementPathBlock

public ElementPathBlock(BasicPattern bgp)
Method Detail

isEmpty

public boolean isEmpty()

addTriple

public void addTriple(TriplePath tp)

mark

public int mark()
Specified by:
mark in interface TripleCollector

addTriple

public void addTriple(com.hp.hpl.jena.graph.Triple t)
Specified by:
addTriple in interface TripleCollector

addTriple

public void addTriple(int index,
                      com.hp.hpl.jena.graph.Triple t)
Specified by:
addTriple in interface TripleCollector

addTriplePath

public void addTriplePath(TriplePath tPath)
Specified by:
addTriplePath in interface TripleCollector

addTriplePath

public void addTriplePath(int index,
                          TriplePath tPath)
Specified by:
addTriplePath in interface TripleCollector

getPattern

public PathBlock getPattern()

patternElts

public Iterator<TriplePath> patternElts()

hashCode

public int hashCode()
Specified by:
hashCode in class Element

equalTo

public boolean equalTo(Element el2,
                       NodeIsomorphismMap isoMap)
Specified by:
equalTo in class Element

visit

public void visit(ElementVisitor v)
Specified by:
visit in class Element


Licenced under the Apache License, Version 2.0