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 default ValueListProvider to indicate that there's no custom ValueListProvider configured in an annotation.
  • Constructor Details

    • EmptyValueListProvider

      public EmptyValueListProvider()
  • Method Details

    • 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 interface ValueListProvider
      Returns:
      non-null picker value list
    • getDisplayValue

      public String getDisplayValue(String value)
      Description copied from interface: ValueListProvider
      Return display string value for the picker value.
      Specified by:
      getDisplayValue in interface ValueListProvider
      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 picker value and the specified locale. The locale can be null, in which case, it is supposed to use the default locale in implementations.
      Specified by:
      getDisplayValue in interface ValueListProvider
      Parameters:
      value - picker value
      locale - locale
      Returns:
      display string value for the value and the specified locale