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