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

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<AttributeValueFilter>
              extended by com.bea.alcs.domain.catalogview.impl.AttributeValueFilterImpl
All Implemented Interfaces:
AttributeFilter<AttributeValueFilter>, AttributeValueFilter, Filter<AttributeValueFilter>, EpDomain, Transient, java.io.Serializable, java.lang.Comparable<AttributeValueFilter>

public class AttributeValueFilterImpl
extends AbstractFilterImpl<AttributeValueFilter>
implements AttributeValueFilter

The implementation of AttributeFilter.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Fields inherited from interface com.bea.alcs.domain.catalogview.AttributeValueFilter
VALUE_TOKENS
 
Fields inherited from interface com.bea.alcs.domain.catalogview.Filter
SEPARATOR, SEPARATOR_IN_REGEX
 
Constructor Summary
AttributeValueFilterImpl()
           
 
Method Summary
 int compareTo(AttributeValueFilter other)
          Compares this object with the specified AttributeValueFilter for ordering.
 Attribute getAttribute()
          Get the attribute object.
 java.lang.String getAttributeFilterId(java.lang.String attributeKey, java.lang.String seoId)
          Generate and return an attribute filter id.
 java.lang.String getAttributeKey()
          Get the attribute key.
 AttributeValueWithType getAttributeValue()
          Gets the AttributeValueWithType of this filter.
 java.lang.String getDisplayName(java.util.Locale locale)
          Get the display name for the filter.
 java.util.Locale getLocale()
          Get the locale for this attribute.
 java.lang.String getSeoId()
          This method is not used.
 java.lang.String getSeoName(java.util.Locale locale)
          This method is not used.
 void initialize(java.lang.String filterId)
          Initialized the filter.
 boolean matchAttributeMultiValue(AttributeValueWithType attributeValue)
           
 void setAttribute(Attribute attribute)
           
 void setAttributeKey(java.lang.String attributeKey)
          Set the attribute Key.
 void setAttributeValue(AttributeValueWithType attributeValue)
          Set the attribute value.
 void setAttributeValueFromString(java.lang.String attributeValue)
          Set the attribute value.
 void setLocale(java.util.Locale locale)
          Set the locale for this attribute.
 
Methods inherited from class com.bea.alcs.domain.catalogview.impl.AbstractFilterImpl
equals, getId, hashCode, 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.Filter
getId, isLocalized, setId, setLocalized
 
Methods inherited from interface com.bea.alcs.domain.EpDomain
getElasticPath, getUtility, setDefaultValues, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

AttributeValueFilterImpl

public AttributeValueFilterImpl()
Method Detail

getAttributeFilterId

public java.lang.String getAttributeFilterId(java.lang.String attributeKey,
                                             java.lang.String seoId)
Generate and return an attribute filter id.

Parameters:
attributeKey - the attributeKey
seoId - the seoId
Returns:
an attribute filter id

getDisplayName

public java.lang.String getDisplayName(java.util.Locale locale)
Get the display name for the filter.

Specified by:
getDisplayName in interface Filter<AttributeValueFilter>
Parameters:
locale - the given locale.
Returns:
the display name.

initialize

public void initialize(java.lang.String filterId)
                throws EpCatalogViewRequestBindException
Initialized the filter.

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

getLocale

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

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

setLocale

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

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

getAttributeKey

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

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

setAttributeKey

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

Specified by:
setAttributeKey in interface AttributeFilter<AttributeValueFilter>
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<AttributeValueFilter>
Returns:
the attribute

setAttribute

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

getSeoName

public java.lang.String getSeoName(java.util.Locale locale)
This method is not used.

Specified by:
getSeoName in interface Filter<AttributeValueFilter>
Parameters:
locale - the locale
Returns:
the SEO url of the filter with the given locale.

getSeoId

public java.lang.String getSeoId()
This method is not used.

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

matchAttributeMultiValue

public boolean matchAttributeMultiValue(AttributeValueWithType attributeValue)
Parameters:
attributeValue - the given attributeValue
Returns:
true when the attributeValue matchs with this filter.

getAttributeValue

public AttributeValueWithType getAttributeValue()
Gets the AttributeValueWithType of this filter.

Specified by:
getAttributeValue in interface AttributeValueFilter
Returns:
the AttributeValueWithType of this filter

setAttributeValue

public void setAttributeValue(AttributeValueWithType attributeValue)
Set the attribute value. The given value should be a String, and it should be convert to the AttributeValue.

Specified by:
setAttributeValue in interface AttributeValueFilter
Parameters:
attributeValue - the attributeValue to set

setAttributeValueFromString

public void setAttributeValueFromString(java.lang.String attributeValue)
Set the attribute value. The given value should be a String, and it should be convert to the AttributeValue.

Specified by:
setAttributeValueFromString in interface AttributeValueFilter
Parameters:
attributeValue - the attributeValue to set

compareTo

public int compareTo(AttributeValueFilter other)
Compares this object with the specified AttributeValueFilter for ordering.

Specified by:
compareTo in interface java.lang.Comparable<AttributeValueFilter>
Parameters:
other - the given object
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object