Class AbstractEnumValueToString<T>
- java.lang.Object
-
- de.gebit.integrity.parameter.conversion.Conversion<EnumValue,T>
-
- de.gebit.integrity.parameter.conversion.conversions.integrity.other.AbstractEnumValueToString<T>
-
- Type Parameters:
T
- the target type
- Direct Known Subclasses:
EnumValueToFormattedString
,EnumValueToString
public abstract class AbstractEnumValueToString<T> extends Conversion<EnumValue,T>
A default Integrity conversion.- Author:
- Rene Schneider - initial API and implementation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.gebit.integrity.parameter.conversion.Conversion
Conversion.Priority
-
-
Constructor Summary
Constructors Constructor Description AbstractEnumValueToString()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FormattedString
convertToFormattedString(EnumValue aSource, ConversionContext aConversionContext)
Converts the providedEnumValue
to aFormattedString
.-
Methods inherited from class de.gebit.integrity.parameter.conversion.Conversion
convert, convertValueRecursive, convertValueToFormattedStringArrayRecursive, setVisitedObjects
-
-
-
-
Method Detail
-
convertToFormattedString
protected FormattedString convertToFormattedString(EnumValue aSource, ConversionContext aConversionContext)
Converts the providedEnumValue
to aFormattedString
.- Parameters:
aSource
- the source valueaConversionContext
- the conversion context- Returns:
- the resulting string
-
-