Class EnumKeyValueConfigurationValueValidatorFactory
- java.lang.Object
-
- com.github.toolarium.enumeration.configuration.validation.value.EnumKeyValueConfigurationValueValidatorFactory
-
public final class EnumKeyValueConfigurationValueValidatorFactory extends java.lang.ObjectDefines theIEnumKeyConfigurationValueValidatorfactory.
-
-
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)Create anIEnumKeyConfigurationValueValidator.static EnumKeyValueConfigurationValueValidatorFactorygetInstance()Get the instance
-
-
-
Method Detail
-
getInstance
public static EnumKeyValueConfigurationValueValidatorFactory getInstance()
Get the instance- Returns:
- the instance
-
createEnumKeyValueConfigurationValueValidator
public IEnumKeyConfigurationValueValidator<?,?> createEnumKeyValueConfigurationValueValidator(EnumKeyValueConfigurationDataType dataType)
Create anIEnumKeyConfigurationValueValidator.- Parameters:
dataType- the enum data type- 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
-
-