com.elasticpath.domain.catalogview
Interface AttributeRangeFilter
- All Superinterfaces:
- AttributeFilter, BranchNode, java.lang.Comparable, EpDomain, Filter, RangeFilter, java.io.Serializable, Transient
- All Known Implementing Classes:
- AttributeRangeFilterImpl
public interface AttributeRangeFilter
- extends RangeFilter, AttributeFilter
The AttributeRangeFilter represents the attribute filter with a range predefined.
Method Summary |
java.lang.String |
getAttributeRangeFilterId(java.lang.String attributeKey,
java.lang.String lowerAttributeStr,
java.lang.String upperAttributeStr)
Generates and returns a attribute range filter id based on the given attributeKey, lower value and upper value. |
boolean |
match(java.lang.Object obj,
java.util.Locale locale)
Check whether the given object matchs this filter. |
Methods inherited from interface com.elasticpath.domain.catalogview.RangeFilter |
addChild, addDisplayInfo, contains, getChildren, getDisplayInfo, getLocalizedDisplayMap, getLowerValue, getParent, getRangeType, getUpperValue, setLocalizedDisplayMap, setLowerValue, setParent, setRangeType, setUpperValue |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface java.lang.Comparable |
compareTo |
getAttributeRangeFilterId
java.lang.String getAttributeRangeFilterId(java.lang.String attributeKey,
java.lang.String lowerAttributeStr,
java.lang.String upperAttributeStr)
throws EpBindException
- Generates and returns a attribute range filter id based on the given attributeKey, lower value and upper value.
- Parameters:
attributeKey
- the attribute keylowerAttributeStr
- the lower valueupperAttributeStr
- the upper value
- Returns:
- a attribute range filter id
- Throws:
EpBindException
- when the given value is not valid to be converted
match
boolean match(java.lang.Object obj,
java.util.Locale locale)
- Check whether the given object matchs this filter. Generally, the given object should be a product.
- Parameters:
obj
- the given object.locale
- the given locale
- Returns:
- true: the given object matchs with the filter.