Class AbstractDateToString<T>
java.lang.Object
de.gebit.integrity.parameter.conversion.Conversion<Date,T>
de.gebit.integrity.parameter.conversion.conversions.java.other.AbstractDateToString<T>
- Type Parameters:
T- the target type
- Direct Known Subclasses:
DateToFormattedString,DateToString
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected FormattedStringconvertToFormattedString(Date aSource, ConversionContext aConversionContext) Converts the providedDateto aFormattedString.Methods inherited from class de.gebit.integrity.parameter.conversion.Conversion
convert, convertValueRecursive, convertValueToFormattedStringArrayRecursive, setVisitedObjects
-
Constructor Details
-
AbstractDateToString
public AbstractDateToString()
-
-
Method Details
-
convertToFormattedString
protected FormattedString convertToFormattedString(Date aSource, ConversionContext aConversionContext) throws ConversionFailedException Converts the providedDateto aFormattedString.- Parameters:
aSource- the source valueaConversionContext- the conversion context- Returns:
- the resulting string
- Throws:
ConversionFailedException
-