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