public class ContentFacetDefinition extends Object implements FacetDefinition
| Modifier and Type | Class and Description |
|---|---|
private static class |
ContentFacetDefinition.ProxySearchField |
| Modifier and Type | Field and Description |
|---|---|
(package private) ContentSearchCriterionDefinition |
_contentSearchCriterionDefinition |
(package private) Returnable |
_returnable |
| Constructor and Description |
|---|
ContentFacetDefinition(ContentSearchCriterionDefinition contentSearchCriterionDefinition,
Returnable returnable)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
I18nizableText |
getFacetLabel(String value,
String currentLang)
Gets the label of a facet value
|
String |
getId()
Gets the id of the facet.
|
I18nizableText |
getLabel()
Gets the label of the facet.
|
Optional<Returnable> |
getReturnable()
Gets the (
Returnable) the facet belongs to. |
SearchField |
getSearchField()
Gets the search field of this facet
|
ContentSearchCriterionDefinition _contentSearchCriterionDefinition
Returnable _returnable
public ContentFacetDefinition(ContentSearchCriterionDefinition contentSearchCriterionDefinition, Returnable returnable)
contentSearchCriterionDefinition - the ContentSearchCriterionDefinition it is based onreturnable - the Returnablepublic String getId()
FacetDefinitiongetId in interface FacetDefinitionpublic I18nizableText getLabel()
FacetDefinitiongetLabel in interface FacetDefinitionpublic SearchField getSearchField()
FacetDefinitiongetSearchField in interface FacetDefinitionpublic I18nizableText getFacetLabel(String value, String currentLang)
FacetDefinitiongetFacetLabel in interface FacetDefinitionvalue - the facet valuecurrentLang - the current langpublic Optional<Returnable> getReturnable()
FacetDefinitionReturnable) the facet belongs to.getReturnable in interface FacetDefinitionReturnable) the facet belongs to.