public class QGroup extends Query
MODEL_BOOLEAN, MODEL_FUZZY_M, MODEL_VECTOR
Constructor and Description |
---|
QGroup()
Constructor for the QGroup object.
|
QGroup(boolean required)
Construct a QGroup with the given boolean value.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Query q)
Add the given Query to the group.
|
void |
addTerms(HashSet<Token> to)
Adds all terms in this query into the given HashSet.
|
Query |
applyCWI(CWI cwi)
Apply the given CWI to this Query.
|
Runner |
attach(Rider r)
Return a binary form of this object for the given Rider.
|
Node |
explain(Document doc)
Description of the Method
|
String |
getNodeName()
Gets the nodeName attribute of the QGroup object
|
boolean |
isContradictory()
By default, queries are contradictory, if they are excluded but required at the same time.
|
void |
setModel(int model)
Sets the model attribute of the QGroup object
|
String |
toString()
Return a String representation of this object.
|
getExcluded, getModel, getProhibited, getRequired, getUnknown, isRequiredOrProhibited, setExcluded, setProhibited, setRequired, setUnknown
public QGroup()
public QGroup(boolean required)
required
- Description of the Parameterpublic boolean isContradictory()
Query
isContradictory
in class Query
public void setModel(int model)
public String getNodeName()
getNodeName
in class Query
public Node explain(Document doc) throws DOMException
explain
in class Query
doc
- Description of the ParameterDOMException
- Description of the Exceptionpublic void add(Query q)
q
- the query to addpublic String toString()
public void addTerms(HashSet<Token> to)
Query
Copyright © 2016 Egothor. All Rights Reserved.