public class Condition
extends java.lang.Object
Condition
instance is a criteria defined for attribute filtering.
Each Condition
should have tree elements as below:
GetEqualsNumberSolrExpressionCmdImpl
,
GetEqualsStringSolrExpressionCmdImpl
,
GetGreaterThanNumberSolrExpressionCmdImpl
,
GetLessThanNumberSolrExpressionCmdImpl
,
GetNotEqualsNumberSolrExpressionCmdImpl
,
GetNotEqualsStringSolrExpressionCmdImpl
,
GetNotGreaterThanNumberSolrExpressionCmdImpl
,
GetNotLessThanNumberSolrExpressionCmdImpl
Modifier and Type | Class and Description |
---|---|
static class |
Condition.Type
The type of condition, could be one of the following:
Attribute Dictionary attribute.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName()
Get attribute name.
|
java.util.List<java.lang.Object> |
getAttributeValueList()
Get attribute value list.
|
java.lang.String |
getIndexFieldName()
Get the corresponding index field of attribute name in condition.
|
java.lang.String |
getOperator()
Get condition operator
|
Condition.Type |
getType()
Get type of condition.
|
void |
setAttributeName(java.lang.String attributeName)
Set attribute name.
|
void |
setAttributeValueList(java.util.List<java.lang.Object> attributeValueList)
Set attribute value list
|
void |
setIndexFieldName(java.lang.String indexFieldName)
Set the corresponding index field of attribute name in condition.
|
void |
setOperator(java.lang.String operator)
Set condition operator
|
void |
setType(Condition.Type type)
Set the type of condition.
|
public static final java.lang.String COPYRIGHT
public java.lang.String getAttributeName()
public void setAttributeName(java.lang.String attributeName)
attributeName
- Attribute namepublic java.util.List<java.lang.Object> getAttributeValueList()
public void setAttributeValueList(java.util.List<java.lang.Object> attributeValueList)
attributeValueList
- attribute value listpublic java.lang.String getOperator()
public void setOperator(java.lang.String operator)
operator
- operatorpublic Condition.Type getType()
public void setType(Condition.Type type)
type
- The type of condition.public java.lang.String getIndexFieldName()
public void setIndexFieldName(java.lang.String indexFieldName)
indexFieldName
- The index field.