public abstract class AbstractTypeConverterRuleFixedSourceAnyDestination extends AbstractTypeConverterRule
ITypeConverterRule.ESubType| Constructor and Description |
|---|
AbstractTypeConverterRuleFixedSourceAnyDestination(Class<?> aSrcClass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class<?> aSrcClass,
Class<?> aDstClass)
Check if this converter can handle the conversion from the passed source to
the passed destination class.
|
Object |
convert(Object aSource)
Convert the passed source object to the destination type.
|
protected abstract Object |
getInBetweenValue(Object aSource) |
Class<?> |
getSourceClass() |
String |
toString() |
getSubTypepublic final boolean canConvert(@Nonnull Class<?> aSrcClass, @Nonnull Class<?> aDstClass)
ITypeConverterRuleaSrcClass - Source class to convert from. Never null.aDstClass - Destination class to convert to. Never null.true if conversion is possible, false
otherwise.public final Object convert(@Nonnull Object aSource)
ITypeConverteraSource - The source object to be converted. Cannot be null
because the type converter already filters null values!null.public String toString()
toString in class AbstractTypeConverterRuleCopyright © 2006–2015 phloc systems. All rights reserved.