protected class AbstractSearchGenerator.MetadataFacetField extends Object implements AbstractSearchGenerator.FacetField
Modifier and Type | Field and Description |
---|---|
private SearchField |
_field |
private Logger |
_logger |
private MetadataDefinition |
_metadataDefinition |
Constructor and Description |
---|
MetadataFacetField(SearchField field,
MetadataDefinition definition,
Logger logger)
Constructor
|
Modifier and Type | Method and Description |
---|---|
I18nizableText |
getFacetLabel(String value,
Locale currentLocale)
Get the label for a facet value
|
I18nizableText |
getLabel()
Get the label of the facet
|
SearchField |
getSearchField()
Get the search field for this facet
|
private SearchField _field
private MetadataDefinition _metadataDefinition
public MetadataFacetField(SearchField field, MetadataDefinition definition, Logger logger)
field
- The search fielddefinition
- The metadata definitionlogger
- The loggerpublic SearchField getSearchField()
AbstractSearchGenerator.FacetField
getSearchField
in interface AbstractSearchGenerator.FacetField
public I18nizableText getLabel()
AbstractSearchGenerator.FacetField
getLabel
in interface AbstractSearchGenerator.FacetField
public I18nizableText getFacetLabel(String value, Locale currentLocale)
AbstractSearchGenerator.FacetField
getFacetLabel
in interface AbstractSearchGenerator.FacetField
value
- the valuecurrentLocale
- the current locale