Package org.hippoecm.hst.core.parameters
Class EmptyValueListProvider
java.lang.Object
org.hippoecm.hst.core.parameters.EmptyValueListProvider
- All Implemented Interfaces:
ValueListProvider
A NOP implementation that can be used as the default
ValueListProvider
to indicate that there's no
custom ValueListProvider
configured in an annotation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDisplayValue
(String value) Return display string value for the pickervalue
.getDisplayValue
(String value, Locale locale) Return display string value for the pickervalue
and the specifiedlocale
.Return picker value list.
-
Constructor Details
-
EmptyValueListProvider
public EmptyValueListProvider()
-
-
Method Details
-
getValues
Description copied from interface:ValueListProvider
Return picker value list. The return value must be a non-null list object.- Specified by:
getValues
in interfaceValueListProvider
- Returns:
- non-null picker value list
-
getDisplayValue
Description copied from interface:ValueListProvider
Return display string value for the pickervalue
.- Specified by:
getDisplayValue
in interfaceValueListProvider
- Parameters:
value
- picker value- Returns:
- display string value for the
value
-
getDisplayValue
Description copied from interface:ValueListProvider
Return display string value for the pickervalue
and the specifiedlocale
. Thelocale
can be null, in which case, it is supposed to use the default locale in implementations.- Specified by:
getDisplayValue
in interfaceValueListProvider
- Parameters:
value
- picker valuelocale
- locale- Returns:
- display string value for the
value
and the specifiedlocale
-