com.elasticpath.domain.catalogview.impl
Class AbstractFilterImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractTransientImpl
          extended by com.elasticpath.domain.catalogview.impl.AbstractFilterImpl
All Implemented Interfaces:
Filter, EpDomain, Transient, java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
AbstractRangeFilterImpl, AttributeValueFilterImpl, BrandFilterImpl, CategoryFilterImpl

public abstract class AbstractFilterImpl
extends AbstractTransientImpl
implements Filter

The abstract implement of the filter.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.elasticpath.domain.impl.AbstractTransientImpl
serialVersionUID
 
Fields inherited from interface com.elasticpath.domain.catalogview.Filter
ERROR_MSG, SEPARATOR, SEPARATOR_IN_REGEX
 
Constructor Summary
AbstractFilterImpl()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if this filter equals to the given object.
 java.util.List filter(java.util.List objects)
          Filter on the given object list and returns a filtered list.
 java.lang.String getId()
          Returns the id of the filter.
 java.lang.String getSeoId()
          Get the seoId.
 int hashCode()
          Returns the hash code.
 boolean isLocalized()
          Check the filter is localized.
 void setId(java.lang.String filterId)
          Set the id of the filter.
 void setLocalized(boolean localized)
          Set the filter is localized.
 
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
getDisplayName, getSeoName, initialize, match
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AbstractFilterImpl

public AbstractFilterImpl()
Method Detail

equals

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

Overrides:
equals in class java.lang.Object
Parameters:
object - the object to compare
Returns:
true if this filter equals to the given object.

filter

public java.util.List filter(java.util.List objects)
Filter on the given object list and returns a filtered list. Generally, the objects in the list should be products.

Specified by:
filter in interface Filter
Parameters:
objects - the object list to filter
Returns:
a filtered object list

getId

public final java.lang.String getId()
Returns the id of the filter. Every filter has a unique id.

Specified by:
getId in interface Filter
Returns:
the id of the filter

getSeoId

public java.lang.String getSeoId()
Get the seoId.

Specified by:
getSeoId in interface Filter
Returns:
the seoId

hashCode

public int hashCode()
Returns the hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code

isLocalized

public boolean isLocalized()
Check the filter is localized.

Specified by:
isLocalized in interface Filter
Returns:
the localized

setId

public final void setId(java.lang.String filterId)
Set the id of the filter. Every filter has a unique id.

Specified by:
setId in interface Filter
Parameters:
filterId - the id of the filter

setLocalized

public void setLocalized(boolean localized)
Set the filter is localized.

Specified by:
setLocalized in interface Filter
Parameters:
localized - the localized to set