Class FilterAttribute
java.lang.Object
de.hybris.platform.classification.filter.FilterAttribute
- All Implemented Interfaces:
Comparable<FilterAttribute>
A classification attribute along with possible values. It is a part of
ProductFilterResult.-
Constructor Summary
ConstructorsConstructorDescriptionFilterAttribute(ClassAttributeAssignmentModel attributeAssignment, List<FilterAttributeValue> possibleValues) Initializes the object with an attribute assignment and possible values. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FilterAttribute filterAttribute) Returns the attribute assignment.getCode()Returns the code of the attribute.getName()Returns the (localized) name of the attribute.Returns a list of possible attribute values.toString()
-
Constructor Details
-
FilterAttribute
public FilterAttribute(ClassAttributeAssignmentModel attributeAssignment, List<FilterAttributeValue> possibleValues) Initializes the object with an attribute assignment and possible values.- Parameters:
attributeAssignment- the attribute assignmentpossibleValues- the possible values
-
-
Method Details
-
getCode
Returns the code of the attribute.- Returns:
- the code of the attribute
-
getName
Returns the (localized) name of the attribute.- Returns:
- the name of the attribute
-
getAttributeAssignment
Returns the attribute assignment.- Returns:
- the attribute assignment
-
getValues
Returns a list of possible attribute values.- Returns:
- the list of attribute values
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<FilterAttribute>
-