com.sun.labs.minion.retrieval.parser
Class StrictElementFactory
java.lang.Object
com.sun.labs.minion.retrieval.parser.StrictElementFactory
public class StrictElementFactory
- extends java.lang.Object
Creates QueryElements based on SimpleNodes generated from the parser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrictElementFactory
public StrictElementFactory()
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 elementchildren
- 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)