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)
IConverteraSource - The source object to be converted. No null or non-
null constraint possible.null or non- null
constraint possible.public String toString()
toString in class AbstractTypeConverterRuleCopyright © 2014–2016 Philip Helger. All rights reserved.