|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RangeFilter
This defines the filter which has a range value. When this filter is applied on an object, the object will be rejected if its value not falls into the range.
Field Summary | |
---|---|
static java.lang.String |
ALL
The range contains all the values. |
static java.lang.String |
AND
The range has both upper and lower value set. |
static java.lang.String |
BETWEEN
The range has both upper and lower value set. |
static java.lang.String |
LESSTHAN
The range has only upper value set. |
static int |
LOWER_VALUE_POSITION
The lower value position. |
static java.lang.String |
MORETHAN
The range has only lower value set. |
static int |
RANGE_TOKENS
Range Token counts. |
static int |
UPPER_VALUE_POSITION
The heigher value position. |
Fields inherited from interface com.elasticpath.domain.catalogview.Filter |
---|
ERROR_MSG, SEPARATOR, SEPARATOR_IN_REGEX |
Method Summary | |
---|---|
void |
addChild(RangeFilter childFilter)
Add the given filter as a child. |
void |
addDisplayInfo(java.util.Locale locale,
FilterDisplayInfo displayInfo)
Add a localized display info in the localized map. |
boolean |
contains(RangeFilter filter)
Returns true if this filter contains the given filter. |
java.util.Set |
getChildren()
Get the children filters. |
FilterDisplayInfo |
getDisplayInfo(java.util.Locale locale)
Get the localized display info map. |
java.util.Map |
getLocalizedDisplayMap()
Get the localized display map. |
java.lang.Object |
getLowerValue()
Returns the lower value of the filter. |
RangeFilter |
getParent()
Get the parent filter of this filter. |
java.lang.String |
getRangeType()
Get the range type. |
java.lang.Object |
getUpperValue()
Returns the upper value of the filter. |
void |
setLocalizedDisplayMap(java.util.Map displayMap)
Set the localized display map. |
void |
setLowerValue(java.lang.Object lowerValue)
Set the lower value for the range. |
void |
setParent(RangeFilter parent)
Set the parent filter of this filter. |
void |
setRangeType(java.lang.String rangeType)
Set the range type. |
void |
setUpperValue(java.lang.Object upperValue)
Set the upper value for the range. |
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 |
Field Detail |
---|
static final java.lang.String ALL
static final java.lang.String AND
static final java.lang.String BETWEEN
static final java.lang.String LESSTHAN
static final int LOWER_VALUE_POSITION
static final java.lang.String MORETHAN
static final int RANGE_TOKENS
static final int UPPER_VALUE_POSITION
Method Detail |
---|
void addChild(RangeFilter childFilter)
childFilter
- the filter to be added as a childvoid addDisplayInfo(java.util.Locale locale, FilterDisplayInfo displayInfo)
locale
- the given locale.displayInfo
- the displayInfo.boolean contains(RangeFilter filter)
true
if this filter contains the given filter.
filter
- the given filter
true
if this filter contains the given filterjava.util.Set getChildren()
FilterDisplayInfo getDisplayInfo(java.util.Locale locale)
locale
- the given locale.
java.util.Map getLocalizedDisplayMap()
java.lang.Object getLowerValue()
RangeFilter getParent()
java.lang.String getRangeType()
java.lang.Object getUpperValue()
void setLocalizedDisplayMap(java.util.Map displayMap)
displayMap
- the displayMap to setvoid setLowerValue(java.lang.Object lowerValue)
lowerValue
- the lowerValue to setvoid setParent(RangeFilter parent)
parent
- the parent filtervoid setRangeType(java.lang.String rangeType)
rangeType
- the rangeType to setvoid setUpperValue(java.lang.Object upperValue)
upperValue
- the upperValue to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |