Class ObjectToObject
java.lang.Object
de.gebit.integrity.parameter.conversion.Conversion<Object,Object>
de.gebit.integrity.parameter.conversion.conversions.java.identity.ObjectToObject
A default Integrity conversion. This conversion actually doesn't convert anything - it just returns the input. This
special conversion is not part of the normal bunch of conversions which is scanned to find a matching one, but only
used to handle special cases.
- 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
-
ObjectToObject
public ObjectToObject()
-
-
Method Details
-
convert
public Object convert(Object aSource, Class<? extends Object> aTargetType, ConversionContext aConversionContext) throws ConversionFailedException Description copied from class:ConversionPerforms the conversion.- Specified by:
convertin classConversion<Object,Object> - 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
-