public class QueryElement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
caseSensitive
True if evaluations should be case sensitive
|
protected java.lang.String |
name
An ID that can be used to identify each single element uniquely.
|
protected java.lang.String |
typeCondition
This field is used in different ways depending on the derived object.
|
protected java.lang.String |
value
The element value, for example, to compare a condition with, from either side of the operand
|
protected java.lang.String |
valueType
The type of value to be evaluated.
|
protected boolean |
wildcards
True if wildcards are allowed
|
Constructor and Description |
---|
QueryElement(java.lang.String thisTypeCondition)
Create a new instance of QueryElement.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCase()
Get the case sensitive value.
|
java.lang.String |
getName()
Get the element name.
|
java.lang.String |
getTypeOrCondition()
Get the element type or query condition.
|
java.lang.String |
getValue()
Get the element value.
|
java.lang.String |
getValueType()
Get the element value type.
|
boolean |
getWildcards()
Get the wildcards value.
|
void |
setBooleans(boolean caseSensitive,
boolean wildcards)
Set the boolean conditions on which an evaluation is made.
|
void |
setName(java.lang.String thisName)
Set the element name.
|
void |
setValue(java.lang.String thisValue)
Set the element value.
|
void |
setValueType(java.lang.String thisValueType)
Set the element value type.
|
protected boolean caseSensitive
protected boolean wildcards
protected java.lang.String name
protected java.lang.String typeCondition
QueryConst
.XML
, TEXT
,
ASTEXT
or NUMERICAL
, but for a pattern constraint, it is used t define the constraint
condition, for example TextConst
.CONTAINS
or AiHeuristicConst
.GT
, etc.protected java.lang.String value
protected java.lang.String valueType
public QueryElement(java.lang.String thisTypeCondition)
thisTypeCondition
- the element type or condition. Can be null.public void setName(java.lang.String thisName)
thisName
- the element name.public java.lang.String getName()
public void setBooleans(boolean caseSensitive, boolean wildcards)
caseSensitive
- for text-based case matching.wildcards
- for text-based wildcard matching.public boolean getCase()
public boolean getWildcards()
public java.lang.String getTypeOrCondition()
public void setValue(java.lang.String thisValue)
thisValue
- the element value.public java.lang.String getValue()
public void setValueType(java.lang.String thisValueType)
thisValueType
- the element valueType.public java.lang.String getValueType()