public class QueryModelOther extends QueryModelText
QueryConst
.EXISTS
.
To use this model you would typically add PatternConstraint
objects through the
setSingleCondition
method. Each query is executed on a line of text and so
there is no pattern to match. The query may be more like a specific rule or condition
than a general evaluation, such as exists
, or true/false. The base model then allows
further access to the query elements.
fileList, fileType, otherMeta, pattern, queryID, queryType, selectedPattern
Modifier | Constructor and Description |
---|---|
protected |
QueryModelOther()
Create a new instance of QueryModelOther
|
Modifier and Type | Method and Description |
---|---|
PatternConstraint |
getIsSingleCondition()
Check if the query model represents a single condition and return it if it does.
|
addQueryConstraint, getQueryConstraints
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 QueryModelOther()
public PatternConstraint getIsSingleCondition()
typeCondition
field and checked by isSingleConstraint()
.