com.ibm.commerce.contract.catalogfilter

Class Condition

  • java.lang.Object
    • com.ibm.commerce.contract.catalogfilter.Condition


  • public class Condition
    extends java.lang.Object
    A Condition instance is a criteria defined for attribute filtering. Each Condition should have tree elements as below:
    1. Attribute name: The name of the attribute.
    2. Attribute value: The value of the attribute
    3. Operator: The operator used as the filtering criteria for this condition
    Current, There are 14 operator supported in OOB as following:
    • STRING_EQUALS
    • STRING_NOT_EQUALS
    • NUMBER_EQUALS
    • NUMBER_NOT_EQUALS
    • NUMBER_LESS_THAN
    • NUMBER_NOT_LESS_THAN
    • NUMBER_GREATER_THAN
    • NUMBER_NOT_GREATER_THAN
    See Also:
    GetEqualsNumberSolrExpressionCmdImpl, GetEqualsStringSolrExpressionCmdImpl, GetGreaterThanNumberSolrExpressionCmdImpl, GetLessThanNumberSolrExpressionCmdImpl, GetNotEqualsNumberSolrExpressionCmdImpl, GetNotEqualsStringSolrExpressionCmdImpl, GetNotGreaterThanNumberSolrExpressionCmdImpl, GetNotLessThanNumberSolrExpressionCmdImpl
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  Condition.Type
      The type of condition, could be one of the following: Attribute Dictionary attribute.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright statement.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Condition() 
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Copyright statement.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Condition

        public Condition()
    • Method Detail

      • getAttributeName

        public java.lang.String getAttributeName()
        Get attribute name.
        Returns:
        Attribute name
      • setAttributeName

        public void setAttributeName(java.lang.String attributeName)
        Set attribute name.
        Parameters:
        attributeName - Attribute name
      • getAttributeValueList

        public java.util.List<java.lang.Object> getAttributeValueList()
        Get attribute value list.
        Returns:
        Attribute value list
      • setAttributeValueList

        public void setAttributeValueList(java.util.List<java.lang.Object> attributeValueList)
        Set attribute value list
        Parameters:
        attributeValueList - attribute value list
      • getOperator

        public java.lang.String getOperator()
        Get condition operator
        Returns:
        operator
      • setOperator

        public void setOperator(java.lang.String operator)
        Set condition operator
        Parameters:
        operator - operator
      • getType

        public Condition.Type getType()
        Get type of condition.
        Returns:
        The type of condition.
      • setType

        public void setType(Condition.Type type)
        Set the type of condition.
        Parameters:
        type - The type of condition.
      • getIndexFieldName

        public java.lang.String getIndexFieldName()
        Get the corresponding index field of attribute name in condition.
        Returns:
        The index field.
      • setIndexFieldName

        public void setIndexFieldName(java.lang.String indexFieldName)
        Set the corresponding index field of attribute name in condition.
        Parameters:
        indexFieldName - The index field.