Package com.inet.pdfc.config
Class ValidValueProvider
java.lang.Object
com.inet.pdfc.config.ValidValueProvider
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
Modifier and TypeClassDescriptionstatic interface
Defines a value that is valid for a certain property. -
Constructor Summary
ConstructorDescriptionValidValueProvider
(@Nonnull List<ValidValueProvider.ValidValue> values) Creates the provider for a list of well defined valid valuesValidValueProvider
(Object[] values) Creates a value provider for values without translation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the valid values of a property
-
Constructor Details
-
ValidValueProvider
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
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 Details
-
getValidValues
Returns the valid values of a property- Returns:
- the valid values, not
null
- Since:
- 5.0
-