Class AbstractEnumToString<T>
- java.lang.Object
-
- de.gebit.integrity.parameter.conversion.Conversion<Enum,T>
-
- de.gebit.integrity.parameter.conversion.conversions.java.other.AbstractEnumToString<T>
-
- Type Parameters:
T- the target type
- Direct Known Subclasses:
EnumToFormattedString,EnumToString
public abstract class AbstractEnumToString<T> extends Conversion<Enum,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 AbstractEnumToString()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FormattedStringconvertToFormattedString(Enum aSource, ConversionContext aConversionContext)Converts the providedEnumto aFormattedString.-
Methods inherited from class de.gebit.integrity.parameter.conversion.Conversion
convert, convertValueRecursive, convertValueToFormattedStringArrayRecursive, setVisitedObjects
-
-
-
-
Method Detail
-
convertToFormattedString
protected FormattedString convertToFormattedString(Enum aSource, ConversionContext aConversionContext) throws ConversionFailedException
Converts the providedEnumto aFormattedString.- Parameters:
aSource- the source valueaConversionContext- the conversion context- Returns:
- the resulting string
- Throws:
ConversionFailedException
-
-