com.sun.labs.minion.retrieval.parser
Class StrictElementFactory

java.lang.Object
  extended by com.sun.labs.minion.retrieval.parser.StrictElementFactory

public class StrictElementFactory
extends java.lang.Object

Creates QueryElements based on SimpleNodes generated from the parser


Constructor Summary
StrictElementFactory()
           
 
Method Summary
static QueryElement make(SimpleNode node, java.util.ArrayList children, int defaultOperator)
          Makes a query element for the provided token node.
static void setMods(DictTerm theTerm, SimpleNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrictElementFactory

public StrictElementFactory()
Method Detail

make

public static QueryElement make(SimpleNode node,
                                java.util.ArrayList children,
                                int defaultOperator)
                         throws java.text.ParseException
Makes a query element for the provided token node. The tree of query elements is built bottom up, so an array of child query element nodes must be passed in.

Parameters:
node - the node to turn into a query element
children - an array list of QueryElement objects that represent the children of the current node.
defaultOperator - specified the default operator to use when no other operator is provided between terms in the query. Valid values are defined in the Searcher interface
Returns:
the query element for this node.
Throws:
java.text.ParseException

setMods

public static void setMods(DictTerm theTerm,
                           SimpleNode node)