Class FilterAttribute

java.lang.Object
de.hybris.platform.classification.filter.FilterAttribute
All Implemented Interfaces:
Comparable<FilterAttribute>

public class FilterAttribute extends Object implements Comparable<FilterAttribute>
A classification attribute along with possible values. It is a part of ProductFilterResult.
  • Constructor Details

    • FilterAttribute

      public FilterAttribute(ClassAttributeAssignmentModel attributeAssignment, List<FilterAttributeValue> possibleValues)
      Initializes the object with an attribute assignment and possible values.
      Parameters:
      attributeAssignment - the attribute assignment
      possibleValues - the possible values
  • Method Details

    • getCode

      public String getCode()
      Returns the code of the attribute.
      Returns:
      the code of the attribute
    • getName

      public String getName()
      Returns the (localized) name of the attribute.
      Returns:
      the name of the attribute
    • getAttributeAssignment

      public ClassAttributeAssignmentModel getAttributeAssignment()
      Returns the attribute assignment.
      Returns:
      the attribute assignment
    • getValues

      public List<FilterAttributeValue> getValues()
      Returns a list of possible attribute values.
      Returns:
      the list of attribute values
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(FilterAttribute filterAttribute)
      Specified by:
      compareTo in interface Comparable<FilterAttribute>