Class EnumKeyValueConfigurationValueValidatorFactory
- java.lang.Object
-
- com.github.toolarium.enumeration.configuration.validation.value.EnumKeyValueConfigurationValueValidatorFactory
-
public final class EnumKeyValueConfigurationValueValidatorFactory extends java.lang.Object
Defines theIEnumKeyConfigurationValueValidator
factory.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <D,T>
EnumKeyValueConfigurationSizing<T>createEnumKeyValueConfigurationSizing(EnumKeyValueConfigurationDataType dataType, java.lang.String minValue, java.lang.String maxValue)
Create theEnumKeyValueConfigurationSizing
.IEnumKeyConfigurationValueValidator<?,?>
createEnumKeyValueConfigurationValueValidator(EnumKeyValueConfigurationDataType dataType, java.lang.String maxValue)
Create anIEnumKeyConfigurationValueValidator
.static EnumKeyValueConfigurationValueValidatorFactory
getInstance()
Get the instance
-
-
-
Method Detail
-
getInstance
public static EnumKeyValueConfigurationValueValidatorFactory getInstance()
Get the instance- Returns:
- the instance
-
createEnumKeyValueConfigurationValueValidator
public IEnumKeyConfigurationValueValidator<?,?> createEnumKeyValueConfigurationValueValidator(EnumKeyValueConfigurationDataType dataType, java.lang.String maxValue)
Create anIEnumKeyConfigurationValueValidator
.- Parameters:
dataType
- the enum data typemaxValue
- the max value or null if no max value is available- Returns:
- the resolved type
-
createEnumKeyValueConfigurationSizing
public <D,T> EnumKeyValueConfigurationSizing<T> createEnumKeyValueConfigurationSizing(EnumKeyValueConfigurationDataType dataType, java.lang.String minValue, java.lang.String maxValue) throws ValidationException
Create theEnumKeyValueConfigurationSizing
.- Type Parameters:
D
- the validated data typeT
- the size type- Parameters:
dataType
- the data typeminValue
- the min valuemaxValue
- the max value- Returns:
- the
EnumKeyValueConfigurationSizing
. - Throws:
ValidationException
- In case of a validation error
-
-