Package org.hippoecm.hst.core.parameters
Class EmptyValueListProvider
- java.lang.Object
-
- org.hippoecm.hst.core.parameters.EmptyValueListProvider
-
- All Implemented Interfaces:
ValueListProvider
public class EmptyValueListProvider extends Object implements ValueListProvider
A NOP implementation that can be used as the defaultValueListProvider
to indicate that there's no customValueListProvider
configured in an annotation.
-
-
Constructor Summary
Constructors Constructor Description EmptyValueListProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayValue(String value)
Return display string value for the pickervalue
.String
getDisplayValue(String value, Locale locale)
Return display string value for the pickervalue
and the specifiedlocale
.List<String>
getValues()
Return picker value list.
-
-
-
Method Detail
-
getValues
public List<String> 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
public String getDisplayValue(String value)
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
public String getDisplayValue(String value, Locale locale)
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
-
-