public class RequirementQuery extends Query
Query.ForEachQueryNode| Constructor and Description | 
|---|
RequirementQuery()
An empty default constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
clone()
Deep copy this Query object 
 | 
boolean | 
getRequired()
Returns True if the subquery is REQUIRED to exist, or
 false if it REQUIRED to NOT exit. 
 | 
void | 
getTermsOf(Class<? extends Query> c,
          List<Query> alist,
          boolean req)
Returns all the query terms, in subqueries that
 are instances of a given class. 
 | 
boolean | 
obtainControls(Set<String> allowed,
              Map<String,String> controls)
This object cannot contain any controls, 
 so this method will always return false. 
 | 
void | 
obtainQueryTerms(MatchingQueryTerms terms)
Stores the terms of the query in the given structure, which 
 is used for matching documents to the query. 
 | 
String | 
parseTree()
Returns the parse tree for the query as a string 
 | 
void | 
setRequired(boolean needed)
Sets whether the query is required or not. 
 | 
String | 
toString()
Returns a string representation of the query. 
 | 
apply, applyTermPipeline, getTerms, obtainAllOf, obtainQueryTerms, setChildpublic void setRequired(boolean needed)
needed - boolean indicates whether the query is required or not.public boolean getRequired()
public String toString()
public void obtainQueryTerms(MatchingQueryTerms terms)
obtainQueryTerms in class Queryterms - MatchingQueryTerms the structure that holds the query
        terms for matching to documents.public boolean obtainControls(Set<String> allowed, Map<String,String> controls)
obtainControls in class Querypublic void getTermsOf(Class<? extends Query> c, List<Query> alist, boolean req)
getTermsOf in class Queryc - Class a class of queries.alist - ArrayList the list of query terms.req - boolean indicates whether the subqueries 
        are required or not.Terrier 4.0. Copyright © 2004-2014 University of Glasgow