public class PageContentFacetDefinition extends Object implements FacetDefinition
FacetDefinition
for PageReturnable
, which apply on a Content.Modifier and Type | Class and Description |
---|---|
private static class |
PageContentFacetDefinition.PageContentSearchField |
Modifier and Type | Field and Description |
---|---|
(package private) ContentFacetDefinition |
_contentFacetDefinition |
(package private) Returnable |
_returnable |
Constructor and Description |
---|
PageContentFacetDefinition(ContentFacetDefinition contentFacetDefinition,
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
|
ContentFacetDefinition _contentFacetDefinition
Returnable _returnable
public PageContentFacetDefinition(ContentFacetDefinition contentFacetDefinition, Returnable returnable)
contentFacetDefinition
- the ContentFacetDefinition
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.