Class AbstractNestedObjectToString<T>
- java.lang.Object
-
- de.gebit.integrity.parameter.conversion.Conversion<NestedObject,T>
-
- de.gebit.integrity.parameter.conversion.conversions.integrity.nestedobjects.AbstractNestedObjectToString<T>
-
- Type Parameters:
T- the target type
- Direct Known Subclasses:
NestedObjectToFormattedString,NestedObjectToString
public abstract class AbstractNestedObjectToString<T> extends Conversion<NestedObject,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
-
-
Field Summary
Fields Modifier and Type Field Description static StringNESTEDOBJECT_PATH_PROPERTYThe property in theConversionContextused to transport the path in the map.
-
Constructor Summary
Constructors Constructor Description AbstractNestedObjectToString()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FormattedStringconvertToFormattedString(NestedObject aSource, ConversionContext aConversionContext)Converts the providedNestedObjectto aFormattedString.-
Methods inherited from class de.gebit.integrity.parameter.conversion.Conversion
convert, convertValueRecursive, convertValueToFormattedStringArrayRecursive, setVisitedObjects
-
-
-
-
Field Detail
-
NESTEDOBJECT_PATH_PROPERTY
public static final String NESTEDOBJECT_PATH_PROPERTY
The property in theConversionContextused to transport the path in the map.- See Also:
- Constant Field Values
-
-
Method Detail
-
convertToFormattedString
protected FormattedString convertToFormattedString(NestedObject aSource, ConversionContext aConversionContext) throws ConversionFailedException
Converts the providedNestedObjectto aFormattedString.- Parameters:
aSource- the source valueaConversionContext- the conversion context- Returns:
- the resulting string
- Throws:
ConversionFailedException
-
-