|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.glitter.syntax.abstrakt.TreeNode
org.openanzo.glitter.syntax.abstrakt.GraphPattern
org.openanzo.glitter.syntax.abstrakt.Union
public class Union
Represents a UNION construct from a SPARQL query. The algebra of the SPARQL specification dictates binary unions, but Glitter allows for the possibility of n-ary unions.
| Constructor Summary | |
|---|---|
Union()
Default constructor. |
|
Union(GraphPattern p1,
GraphPattern p2)
Construct a union from two operand graph patterns. |
|
| Method Summary | |
|---|---|
void |
addChild(TreeNode child)
Adds the given child at the end of this node's children. |
void |
addGraphPattern(GraphPattern gp)
Add the given graph pattern to this Union. |
java.util.Iterator<GraphPattern> |
getChildren()
|
java.util.ArrayList<GraphPattern> |
getGraphPatterns()
|
boolean |
removeChild(TreeNode child)
Removes the given child from the collection of children |
boolean |
replaceChild(TreeNode oldChild,
TreeNode newChild)
Changes the tree below this node by replacing oldChild with newChild |
java.lang.String |
toString()
|
| Methods inherited from class org.openanzo.glitter.syntax.abstrakt.TreeNode |
|---|
containsVariable, getBindableVariableCount, getBindableVariableSet, getFilters, getInScopeFilterSet, getParent, getRoot, getVariableCount, getVariableSet, invalidateCache, invalidateCache, mightBindVariable, prettyPrint, prettyPrint |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Union(GraphPattern p1,
GraphPattern p2)
p1 - p2 - public Union()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic void addGraphPattern(GraphPattern gp)
Union.
gp - public java.util.ArrayList<GraphPattern> getGraphPatterns()
GraphPattern that are the operands to this Union.public java.util.Iterator<GraphPattern> getChildren()
getChildren in class TreeNodeIterator over the children of this node.
public boolean replaceChild(TreeNode oldChild,
TreeNode newChild)
TreeNode
replaceChild in class TreeNodepublic boolean removeChild(TreeNode child)
TreeNode
removeChild in class TreeNodepublic void addChild(TreeNode child)
TreeNode
addChild in class TreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||