efxtools.filtering
Class QueryNode

java.lang.Object
  extended by efxtools.filtering.QueryNode

public class QueryNode
extends java.lang.Object

One node of a parsed AScopedQuery. A node contains an annotation type or feature as well as an arbitrary number of child nodes. If a node is a leaf (i.e., it has no children), its type is by concept one of the output types and features of the query. To the contrary, an inner node defines the annotation type or feature of the scope of all child nodes of this node.

Author:
Author of EfXTools

Constructor Summary
QueryNode(org.apache.uima.analysis_engine.TypeOrFeature typeOrFeature)
          The constructor sets the annotation type or feature that refers to this node and creates an empty storage for the child nodes of this node.
 
Method Summary
 void addChild(QueryNode child)
          Adds the given child node to the child nodes of this node.
 void addChildren(java.util.List<QueryNode> children)
          Adds all given child nodes to the child nodes of this node.
 java.util.List<QueryNode> getChildren()
          Returns all child nodes of this node.
 org.apache.uima.analysis_engine.TypeOrFeature getTypeOrFeature()
          Returns the annotation type or feature that refers to this node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryNode

public QueryNode(org.apache.uima.analysis_engine.TypeOrFeature typeOrFeature)
The constructor sets the annotation type or feature that refers to this node and creates an empty storage for the child nodes of this node.

Parameters:
typeOrFeature - The annotation type or feature
Method Detail

addChild

public void addChild(QueryNode child)
Adds the given child node to the child nodes of this node.

Parameters:
child - The child node

addChildren

public void addChildren(java.util.List<QueryNode> children)
Adds all given child nodes to the child nodes of this node.

Parameters:
children - The child nodes

getTypeOrFeature

public org.apache.uima.analysis_engine.TypeOrFeature getTypeOrFeature()
Returns the annotation type or feature that refers to this node.

Returns:
The annotation type or feature

getChildren

public java.util.List<QueryNode> getChildren()
Returns all child nodes of this node.

Returns:
The child nodes