Package com.inet.pdfc.config
Class ValidValueProvider
- java.lang.Object
-
- com.inet.pdfc.config.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ValidValueProvider.ValidValue
Defines a value that is valid for a certain property.
-
Constructor Summary
Constructors Constructor Description ValidValueProvider(java.lang.Object[] values)
Creates a value provider for values without translation.ValidValueProvider(java.util.List<ValidValueProvider.ValidValue> values)
Creates the provider for a list of well defined valid values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ValidValueProvider.ValidValue>
getValidValues()
Returns the valid values of a property
-
-
-
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
-
-