com.elasticpath.domain.catalogview.impl
Class FilterOptionImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractTransientImpl
          extended by com.elasticpath.domain.catalogview.impl.FilterOptionImpl
All Implemented Interfaces:
FilterOption, EpDomain, Transient, java.io.Serializable
Direct Known Subclasses:
BrowsingFilterOptionImpl

public class FilterOptionImpl
extends AbstractTransientImpl
implements FilterOption

This is the default implementation of FilterOption.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
FilterOptionImpl()
           
 
Method Summary
 java.lang.String getDisplayName(java.util.Locale locale)
          Returns the display name of the given locale.
 int getHitsNumber()
          Returns the number of hits in the filter option.
 java.lang.String getQueryString()
          Returns the query string.
 void setCatalogViewRequest(CatalogViewRequest catalogViewRequest)
          Sets the search request corresponding to this filter option.
 void setFilter(Filter filter)
          Sets the search filter.
 void setHitsNumber(int hitsNumber)
          Sets the number of hits in under the filter option.
 
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.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

FilterOptionImpl

public FilterOptionImpl()
Method Detail

getDisplayName

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

Specified by:
getDisplayName in interface FilterOption
Parameters:
locale - the locale
Returns:
the display name of the given locale.

getHitsNumber

public int getHitsNumber()
Returns the number of hits in the filter option.

Specified by:
getHitsNumber in interface FilterOption
Returns:
the number of hits in the filter option.

getQueryString

public java.lang.String getQueryString()
Returns the query string.

Specified by:
getQueryString in interface FilterOption
Returns:
the query string.

setCatalogViewRequest

public void setCatalogViewRequest(CatalogViewRequest catalogViewRequest)
Sets the search request corresponding to this filter option.

Specified by:
setCatalogViewRequest in interface FilterOption
Parameters:
catalogViewRequest - the search request

setFilter

public void setFilter(Filter filter)
Sets the search filter.

Specified by:
setFilter in interface FilterOption
Parameters:
filter - the search filter.

setHitsNumber

public void setHitsNumber(int hitsNumber)
Sets the number of hits in under the filter option.

Specified by:
setHitsNumber in interface FilterOption
Parameters:
hitsNumber - the hits number to set