com.bea.alcs.domain.catalogview.impl
Class AttributeRangeFilterImpl

java.lang.Object
  extended by com.bea.alcs.domain.impl.AbstractEpDomainImpl
      extended by com.bea.alcs.domain.impl.AbstractTransientImpl
          extended by com.bea.alcs.domain.catalogview.impl.AbstractFilterImpl<T>
              extended by com.bea.alcs.domain.catalogview.impl.AbstractRangeFilterImpl<AttributeRangeFilter,AttributeValueWithType>
                  extended by com.bea.alcs.domain.catalogview.impl.AttributeRangeFilterImpl
All Implemented Interfaces:
AttributeFilter<AttributeRangeFilter>, AttributeRangeFilter, Filter<AttributeRangeFilter>, RangeFilter<AttributeRangeFilter,AttributeValueWithType>, EpDomain, Transient, java.io.Serializable, java.lang.Comparable<AttributeRangeFilter>

public class AttributeRangeFilterImpl
extends AbstractRangeFilterImpl<AttributeRangeFilter,AttributeValueWithType>
implements AttributeRangeFilter

Default implementation of AttributeRangeFilter.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Fields inherited from interface com.bea.alcs.domain.catalogview.RangeFilter
ALL, AND, LOWER_VALUE_POSITION, RANGE_TOKENS, UPPER_VALUE_POSITION
 
Fields inherited from interface com.bea.alcs.domain.catalogview.Filter
SEPARATOR, SEPARATOR_IN_REGEX
 
Fields inherited from interface com.bea.alcs.domain.catalogview.Filter
SEPARATOR, SEPARATOR_IN_REGEX
 
Constructor Summary
AttributeRangeFilterImpl()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if this filter equals to the given object.
 Attribute getAttribute()
          Get the attribute object.
 java.lang.String getAttributeKey()
          Get the attribute key.
 java.lang.String getDisplayName(java.util.Locale locale)
          Returns the display name of the filter with the given locale.
 java.util.Locale getLocale()
          Get the locale for this attribute.
 java.lang.String getSeoId()
          This method returns the seo id.
 int hashCode()
          Returns the hash code.
 void initialize(java.lang.String filterId)
          Sets the filter id and initialize the filter.
 void setAttribute(Attribute attribute)
           
 void setAttributeKey(java.lang.String attributeKey)
          Set the attribute Key.
 void setLocale(java.util.Locale locale)
          Set the locale for this attribute.
 
Methods inherited from class com.bea.alcs.domain.catalogview.impl.AbstractRangeFilterImpl
addChild, addDisplayInfo, compareTo, contains, getChildren, getDisplayInfo, getLocalizedDisplayMap, getLowerValue, getParent, getRangeType, getSeoName, getUpperValue, setLocalizedDisplayMap, setLowerValue, setParent, setUpperValue
 
Methods inherited from class com.bea.alcs.domain.catalogview.impl.AbstractFilterImpl
getId, isLocalized, setId, setLocalized
 
Methods inherited from class com.bea.alcs.domain.impl.AbstractEpDomainImpl
getBooleanHashCode, getElasticPath, getObjectHashCode, getUtility, setDefaultValues, setElasticPath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.bea.alcs.domain.catalogview.RangeFilter
addChild, addDisplayInfo, contains, getChildren, getDisplayInfo, getLocalizedDisplayMap, getLowerValue, getParent, getRangeType, getUpperValue, setLocalizedDisplayMap, setLowerValue, setParent, setUpperValue
 
Methods inherited from interface com.bea.alcs.domain.catalogview.Filter
getId, getSeoName, isLocalized, setId, setLocalized
 
Methods inherited from interface com.bea.alcs.domain.EpDomain
getElasticPath, getUtility, setDefaultValues, setElasticPath
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.bea.alcs.domain.catalogview.Filter
getId, getSeoName, isLocalized, setId, setLocalized
 
Methods inherited from interface com.bea.alcs.domain.EpDomain
getElasticPath, getUtility, setDefaultValues, setElasticPath
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

AttributeRangeFilterImpl

public AttributeRangeFilterImpl()
Method Detail

equals

public boolean equals(java.lang.Object object)
Returns true if this filter equals to the given object.

Overrides:
equals in class AbstractFilterImpl<AttributeRangeFilter>
Parameters:
object - the object to compare
Returns:
true if this filter equals to the given object.

hashCode

public int hashCode()
Returns the hash code.

Overrides:
hashCode in class AbstractFilterImpl<AttributeRangeFilter>
Returns:
the hash code

initialize

public void initialize(java.lang.String filterId)
                throws EpCatalogViewRequestBindException
Description copied from interface: Filter
Sets the filter id and initialize the filter.

Specified by:
initialize in interface Filter<AttributeRangeFilter>
Parameters:
filterId - the filter id
Throws:
EpCatalogViewRequestBindException - the exception

getLocale

public java.util.Locale getLocale()
Get the locale for this attribute.

Specified by:
getLocale in interface AttributeFilter<AttributeRangeFilter>
Returns:
the locale

setLocale

public void setLocale(java.util.Locale locale)
Set the locale for this attribute.

Specified by:
setLocale in interface AttributeFilter<AttributeRangeFilter>
Parameters:
locale - the locale to set

getAttributeKey

public java.lang.String getAttributeKey()
Get the attribute key.

Specified by:
getAttributeKey in interface AttributeFilter<AttributeRangeFilter>
Returns:
the attributeKey

setAttributeKey

public void setAttributeKey(java.lang.String attributeKey)
Set the attribute Key.

Specified by:
setAttributeKey in interface AttributeFilter<AttributeRangeFilter>
Parameters:
attributeKey - the attributeKey to set

getAttribute

public Attribute getAttribute()
Description copied from interface: AttributeFilter
Get the attribute object.

Specified by:
getAttribute in interface AttributeFilter<AttributeRangeFilter>
Returns:
the attribute

setAttribute

public void setAttribute(Attribute attribute)
Specified by:
setAttribute in interface AttributeFilter<AttributeRangeFilter>
Parameters:
attribute - the attribute to set

getDisplayName

public java.lang.String getDisplayName(java.util.Locale locale)
Returns the display name of the filter with the given locale.

Specified by:
getDisplayName in interface Filter<AttributeRangeFilter>
Overrides:
getDisplayName in class AbstractRangeFilterImpl<AttributeRangeFilter,AttributeValueWithType>
Parameters:
locale - the locale
Returns:
the display name of the filter with the given locale.

getSeoId

public java.lang.String getSeoId()
This method returns the seo id.

Specified by:
getSeoId in interface Filter<AttributeRangeFilter>
Overrides:
getSeoId in class AbstractFilterImpl<AttributeRangeFilter>
Returns:
the SEO identifier of the filter with the given locale.