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.


Field Summary
 
Fields inherited from interface com.elasticpath.domain.catalogview.RangeFilter
ALL, AND, BETWEEN, LESSTHAN, LOWER_VALUE_POSITION, MORETHAN, RANGE_TOKENS, UPPER_VALUE_POSITION
 
Fields inherited from interface com.elasticpath.domain.catalogview.Filter
ERROR_MSG, SEPARATOR, SEPARATOR_IN_REGEX
 
Fields inherited from interface com.elasticpath.domain.catalogview.Filter
ERROR_MSG, SEPARATOR, SEPARATOR_IN_REGEX
 
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 com.elasticpath.domain.catalogview.Filter
filter, getDisplayName, getId, getSeoId, getSeoName, initialize, isLocalized, match, setId, setLocalized
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.elasticpath.domain.catalogview.BranchNode
getLevel, getPath
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.elasticpath.domain.catalogview.AttributeFilter
getAttribute, getAttributeKey, setAttributeKey
 
Methods inherited from interface com.elasticpath.domain.catalogview.Filter
filter, getDisplayName, getId, getSeoId, getSeoName, initialize, isLocalized, match, setId, setLocalized
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

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 key
lowerAttributeStr - the lower value
upperAttributeStr - 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.