com.elasticpath.domain.catalogview.impl
Class ProductAdaptorForAttributeRangeFilterImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractTransientImpl
          extended by com.elasticpath.domain.catalogview.impl.AbstractProductAdaptorForFilterImpl
              extended by com.elasticpath.domain.catalogview.impl.ProductAdaptorForAttributeRangeFilterImpl
All Implemented Interfaces:
LeafNode, ProductAdaptorForAttributeRangeFilter, ProductAdaptorForFilter, EpDomain, Transient, java.io.Serializable, java.lang.Comparable

public class ProductAdaptorForAttributeRangeFilterImpl
extends AbstractProductAdaptorForFilterImpl
implements ProductAdaptorForAttributeRangeFilter

This is a default implementation of ProductAdaptorForAttributeFilter. This is used to build up the attribute filter buckets.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
ProductAdaptorForAttributeRangeFilterImpl()
           
 
Method Summary
 int compareTo(java.lang.Object object)
          Compares this product adaptor with the given object.
 Attribute getAttribute()
          Return the target attribute.
 BranchNode getBranchNode()
          Returns the branch node.
 java.util.Locale getLocale()
          Get the locale for this attribute.
 void setAttribute(Attribute attribute)
          Set the attribute.
 void setLocale(java.util.Locale locale)
          Set the locale for this attribute.
 
Methods inherited from class com.elasticpath.domain.catalogview.impl.AbstractProductAdaptorForFilterImpl
getProduct, setProduct
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.catalogview.ProductAdaptorForFilter
getProduct, setProduct
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

ProductAdaptorForAttributeRangeFilterImpl

public ProductAdaptorForAttributeRangeFilterImpl()
Method Detail

compareTo

public int compareTo(java.lang.Object object)
              throws EpDomainException
Compares this product adaptor with the given object. This method is used to lookup the right price filter that this product adaptor belongs to. So, the given object must be a PriceFilter.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
object - 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.
Throws:
EpDomainException - in case the given object is not a PriceFilter

getAttribute

public Attribute getAttribute()
Return the target attribute.

Specified by:
getAttribute in interface ProductAdaptorForAttributeRangeFilter
Returns:
the attribute

getBranchNode

public BranchNode getBranchNode()
Returns the branch node. A leaf node should have one and only one BranchNode.

Specified by:
getBranchNode in interface LeafNode
Specified by:
getBranchNode in class AbstractProductAdaptorForFilterImpl
Returns:
the branch node

getLocale

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

Specified by:
getLocale in interface ProductAdaptorForAttributeRangeFilter
Returns:
the locale

setAttribute

public void setAttribute(Attribute attribute)
Set the attribute.

Specified by:
setAttribute in interface ProductAdaptorForAttributeRangeFilter
Parameters:
attribute - the attribute to set

setLocale

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

Specified by:
setLocale in interface ProductAdaptorForAttributeRangeFilter
Parameters:
locale - the locale to set