com.hp.hpl.jena.sparql.syntax
Class TemplateGroup
java.lang.Object
com.hp.hpl.jena.sparql.syntax.Template
com.hp.hpl.jena.sparql.syntax.TemplateGroup
- All Implemented Interfaces:
- TripleCollector
- Direct Known Subclasses:
- TemplateGraph
public class TemplateGroup
- extends Template
- implements TripleCollector
A number of templates, grouped together.
Kept as a list so printing maintains order.
TemplateGroup
public TemplateGroup()
add
public void add(Template templ)
addTriple
public void addTriple(com.hp.hpl.jena.graph.Triple t)
- Specified by:
addTriple in interface TripleCollector
mark
public int mark()
- Specified by:
mark 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 path)
- Specified by:
addTriplePath in interface TripleCollector
addTriplePath
public void addTriplePath(int index,
TriplePath path)
- Specified by:
addTriplePath in interface TripleCollector
getTemplates
public List<Template> getTemplates()
templates
public Iterator<Template> templates()
subst
public void subst(Collection<com.hp.hpl.jena.graph.Triple> acc,
Map<com.hp.hpl.jena.graph.Node,com.hp.hpl.jena.graph.Node> bNodeMap,
Binding b)
- Specified by:
subst in class Template
hashCode
public int hashCode()
- Specified by:
hashCode in class Template
equalIso
public boolean equalIso(Object temp2,
NodeIsomorphismMap labelMap)
- Specified by:
equalIso in class Template
visit
public void visit(TemplateVisitor visitor)
- Specified by:
visit in class Template
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010 Epimorphics Ltd.