Class ValidValueProvider


  • public class ValidValueProvider
    extends java.lang.Object
    An abstraction of the valid values of an enum property. In addition to the profile value, this instance provides a translated display value if available.
    Since:
    5.0
    • Constructor Detail

      • ValidValueProvider

        public ValidValueProvider​(@Nonnull
                                  java.util.List<ValidValueProvider.ValidValue> values)
        Creates the provider for a list of well defined valid values
        Parameters:
        values - the list of valid values that will be returned by this provider
        Since:
        5.0
      • ValidValueProvider

        public ValidValueProvider​(java.lang.Object[] values)
        Creates a value provider for values without translation.
        Parameters:
        values - the list of valid values that will be returned by this provider
        Since:
        5.0
    • Method Detail

      • getValidValues

        public java.util.List<ValidValueProvider.ValidValue> getValidValues()
        Returns the valid values of a property
        Returns:
        the valid values, not null
        Since:
        5.0