public class QueryModelText extends QueryModel
QueryConst
.TEXT
, or ASTEXT
.
To use this model you would typically add PatternConstraint
objects through the
addQueryConstraint
method. Each query is executed on a line of text and so
there is no pattern to match. The base model then allows further access to the query elements.
fileList, fileType, otherMeta, pattern, queryID, queryType, selectedPattern
Modifier | Constructor and Description |
---|---|
protected |
QueryModelText()
Create a new instance of QueryModelText
|
Modifier and Type | Method and Description |
---|---|
void |
addQueryConstraint(PatternConstraint newConstraint)
Add the pattern element to the list for the query pattern.
|
java.util.ArrayList<PatternConstraint> |
getQueryConstraints()
Get the list of query constraints for this query.
|
constraintValues, createAsTextModel, createModel, createNumericalModel, createTextModel, createXmlModel, firstConstraint, firstConstraintType, firstPattern, fromXml, getFileList, getFileType, getOtherMeta, getPatternNestedAt, getQueryID, getQueryPattern, getQueryType, getTotalNestedPatternCount, getTotalPatternCount, isNumericalQuery, isOtherQuery, isTextQuery, isXmlQuery, patternToNested, printPatternType, removePatternNestedAt, setFileList, setFileType, setOtherMeta, setQueryID, setQueryPattern, setQueryType, setSingleCondition, setSingleCondition, setSingleCondition, toXml, typeFromOpOther, typeFromOpText
protected QueryModelText()
public void addQueryConstraint(PatternConstraint newConstraint)
newConstraint
- the new constraint to add.public java.util.ArrayList<PatternConstraint> getQueryConstraints()
PatternConstraint
elements.