Class CalendarToTimestamp
java.lang.Object
de.gebit.integrity.parameter.conversion.Conversion<Calendar,Timestamp>
de.gebit.integrity.parameter.conversion.conversions.java.other.CalendarToTimestamp
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
Methods inherited from class de.gebit.integrity.parameter.conversion.Conversion
convertValueRecursive, convertValueToFormattedStringArrayRecursive, setVisitedObjects
-
Constructor Details
-
CalendarToTimestamp
public CalendarToTimestamp()
-
-
Method Details
-
convert
public Timestamp convert(Calendar aSource, Class<? extends Timestamp> aTargetType, ConversionContext aConversionContext) throws ConversionFailedException Description copied from class:ConversionPerforms the conversion.- Specified by:
convertin classConversion<Calendar,Timestamp> - Parameters:
aSource- the source object to convertaTargetType- TODOaConversionContext- controls some conversion parameters and rules; may be null if the defaultConversionContextvalues shall be used- Returns:
- the converted object
- Throws:
ConversionFailedException- in case of conversion errors
-