Package com.hybris.merchandising.model
Class Facet
java.lang.Object
com.hybris.merchandising.model.Facet
- All Implemented Interfaces:
Serializable
This object is the list of facets that the user has selected in the UI to narrow down the search of products
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFacet()Creates a new instance of an ItemFacet with an empty list of values.Creates a new instance of an ItemFacet with a specified code and name.Creates a new instance of an ItemFacet with a specific code, name and initial values. -
Method Summary
-
Constructor Details
-
Facet
public Facet()Creates a new instance of an ItemFacet with an empty list of values. -
Facet
Creates a new instance of an ItemFacet with a specified code and name.- Parameters:
code- a String containing the code for the specific facet.name- the name of the specific facet.
-
Facet
Creates a new instance of an ItemFacet with a specific code, name and initial values.- Parameters:
code- a String containing the code for the specific facet.name- the name of the specific facet.values- a list of the values we want to store against this facet.
-
-
Method Details
-
setCode
-
getCode
-
setName
-
getName
-
setValues
-
addValue
Adds a specified facet value to the list of values represented by this current facet.- Parameters:
value- the facet value to add to the list.
-
getValues
-
hashCode
public int hashCode() -
equals
-
toString
-