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 Returnable
public String getId()
FacetDefinition
getId
in interface FacetDefinition
public I18nizableText getLabel()
FacetDefinition
getLabel
in interface FacetDefinition
public SearchField getSearchField()
FacetDefinition
getSearchField
in interface FacetDefinition
public I18nizableText getFacetLabel(String value, String currentLang)
FacetDefinition
getFacetLabel
in interface FacetDefinition
value
- the facet valuecurrentLang
- the current langpublic Optional<Returnable> getReturnable()
FacetDefinition
Returnable
) the facet belongs to.getReturnable
in interface FacetDefinition
Returnable
) the facet belongs to.