|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.domain.impl.AbstractEpDomainImpl com.elasticpath.domain.impl.AbstractTransientImpl com.elasticpath.domain.catalogview.impl.AbstractFilterImpl com.elasticpath.domain.catalogview.impl.AbstractRangeFilterImpl
public abstract class AbstractRangeFilterImpl
The abstract range filter implement.
Field Summary |
---|
Fields inherited from class com.elasticpath.domain.impl.AbstractTransientImpl |
---|
serialVersionUID |
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 |
Constructor Summary | |
---|---|
AbstractRangeFilterImpl()
|
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. |
abstract int |
compareWithValue(java.lang.Object firstObj,
java.lang.Object secondObj)
Compare the given objs. |
boolean |
contains(RangeFilter rangeFilter)
Returns true if this price filter contains the given price filter. |
java.util.Set |
getChildren()
Get the children filters. |
FilterDisplayInfo |
getDisplayInfo(java.util.Locale locale)
Get the localized display info map. |
java.lang.String |
getDisplayName(java.util.Locale locale)
Returns the display name of the filter with the given locale. |
int |
getLevel()
Get node level. |
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.util.Stack |
getPath()
Get the path from the root price filter to this node on the tree. |
java.lang.String |
getRangeType()
Get the range type. |
java.lang.String |
getSeoName(java.util.Locale locale)
This method is not used. |
java.lang.Object |
getUpperValue()
Returns the upper value of the filter. |
boolean |
match(java.lang.Object obj)
Check whether the given object falls into the range in this 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 class com.elasticpath.domain.catalogview.impl.AbstractFilterImpl |
---|
equals, filter, getId, getSeoId, hashCode, isLocalized, setId, setLocalized |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.catalogview.Filter |
---|
filter, getId, getSeoId, initialize, isLocalized, setId, setLocalized |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public AbstractRangeFilterImpl()
Method Detail |
---|
public void addChild(RangeFilter childFilter)
addChild
in interface RangeFilter
childFilter
- the filter to be added as a childpublic void addDisplayInfo(java.util.Locale locale, FilterDisplayInfo displayInfo)
addDisplayInfo
in interface RangeFilter
locale
- the given locale.displayInfo
- the displayInfo.public abstract int compareWithValue(java.lang.Object firstObj, java.lang.Object secondObj)
firstObj
- the given object.secondObj
- the given value.
public boolean contains(RangeFilter rangeFilter)
true
if this price filter contains the given price filter.
contains
in interface RangeFilter
rangeFilter
- the price filter
true
if this price filter contains the given price filterpublic java.util.Set getChildren()
getChildren
in interface RangeFilter
public FilterDisplayInfo getDisplayInfo(java.util.Locale locale)
getDisplayInfo
in interface RangeFilter
locale
- the given locale.
public java.lang.String getDisplayName(java.util.Locale locale)
Filter
getDisplayName
in interface Filter
locale
- the given locale
public int getLevel()
getLevel
in interface BranchNode
public java.util.Map getLocalizedDisplayMap()
getLocalizedDisplayMap
in interface RangeFilter
public java.lang.Object getLowerValue()
getLowerValue
in interface RangeFilter
public RangeFilter getParent()
getParent
in interface RangeFilter
public java.util.Stack getPath()
getPath
in interface BranchNode
public java.lang.String getRangeType()
getRangeType
in interface RangeFilter
public java.lang.String getSeoName(java.util.Locale locale)
getSeoName
in interface Filter
locale
- the locale
public java.lang.Object getUpperValue()
getUpperValue
in interface RangeFilter
public boolean match(java.lang.Object obj)
match
in interface Filter
obj
- the given object.
public void setLocalizedDisplayMap(java.util.Map displayMap)
setLocalizedDisplayMap
in interface RangeFilter
displayMap
- the displayMap to setpublic void setLowerValue(java.lang.Object lowerValue)
setLowerValue
in interface RangeFilter
lowerValue
- the lowerValue to setpublic void setParent(RangeFilter parent)
setParent
in interface RangeFilter
parent
- the parent filterpublic void setRangeType(java.lang.String rangeType)
setRangeType
in interface RangeFilter
rangeType
- the rangeType to setpublic void setUpperValue(java.lang.Object upperValue)
setUpperValue
in interface RangeFilter
upperValue
- the upperValue to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |