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

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

public class ElementTriplesBlock
extends Element
implements TripleCollectorMark

The syntax eleemnt for a SPARQL BasicGraphPattern


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

Constructor Detail

ElementTriplesBlock

public ElementTriplesBlock()

ElementTriplesBlock

public ElementTriplesBlock(BasicPattern bgp)
Method Detail

isEmpty

public boolean isEmpty()

addTriple

public void addTriple(Triple t)
Specified by:
addTriple in interface TripleCollector

mark

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

addTriple

public void addTriple(int index,
                      Triple t)
Specified by:
addTriple in interface TripleCollectorMark

addTriplePath

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

addTriplePath

public void addTriplePath(int index,
                          TriplePath path)
Specified by:
addTriplePath in interface TripleCollectorMark

getPattern

public BasicPattern getPattern()

patternElts

public Iterator<Triple> 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