Interface FacetDefinition
-
- All Known Implementing Classes:
CommonPseudoContentTypeFacetDefinition,ContentFacetDefinition,PageContentFacetDefinition
public interface FacetDefinition
A potential facet proposed to the creator of an instance of search service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description I18nizableTextgetFacetLabel(String value, String currentLang)Gets the label of a facet valueStringgetId()Gets the id of the facet.I18nizableTextgetLabel()Gets the label of the facet.Optional<Returnable>getReturnable()Gets the (Returnable) the facet belongs to.SearchFieldgetSearchField()Gets the search field of this facet
-
-
-
Method Detail
-
getId
String getId()
Gets the id of the facet. It must be unique across all facet definitions- Returns:
- the unique id of the facet
-
getLabel
I18nizableText getLabel()
Gets the label of the facet.- Returns:
- the label of the facet.
-
getSearchField
SearchField getSearchField()
Gets the search field of this facet- Returns:
- the search field of this facet
-
getFacetLabel
I18nizableText getFacetLabel(String value, String currentLang)
Gets the label of a facet value- Parameters:
value- the facet valuecurrentLang- the current lang- Returns:
- the label of a facet value
-
getReturnable
Optional<Returnable> getReturnable()
Gets the (Returnable) the facet belongs to.- Returns:
- the (
Returnable) the facet belongs to.
-
-