ma.glasnost.orika.converter
Class CustomConverterBase<S,D>
java.lang.Object
ma.glasnost.orika.converter.CustomConverterBase<S,D>
- Type Parameters:
S - the source typeD - the destination type
- All Implemented Interfaces:
- Converter<S,D>, MappedTypePair<S,D>
- Direct Known Subclasses:
- StringToEnumConverter, TypeConverter
Deprecated. use CustomConverter instead
@Deprecated
public abstract class CustomConverterBase<S,D>
- extends Object
- implements Converter<S,D>
CustomConverterBase provides a utility base for creating customized converters,
which determines type parameters automatically.
It is recommend to extend this class to create your own custom converters.
- Author:
- matt.deboer@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sourceType
protected final Type<S> sourceType
- Deprecated.
destinationType
protected final Type<D> destinationType
- Deprecated.
mapperFacade
protected MapperFacade mapperFacade
- Deprecated.
CustomConverterBase
public CustomConverterBase()
- Deprecated.
canConvert
public boolean canConvert(Class<S> sourceClass,
Class<? extends D> destinationClass)
- Deprecated.
- Specified by:
canConvert in interface Converter<S,D>
canConvert
public boolean canConvert(Type<?> sourceClass,
Type<?> destinationClass)
- Deprecated.
setMapperFacade
public void setMapperFacade(MapperFacade mapperFacade)
- Deprecated.
getAType
public Type<S> getAType()
- Deprecated.
- Specified by:
getAType in interface MappedTypePair<S,D>
- Returns:
- the 'A' type for this mapped pair
getBType
public Type<D> getBType()
- Deprecated.
- Specified by:
getBType in interface MappedTypePair<S,D>
- Returns:
- the 'B' type for this mapped pair
Copyright © 2013 Glasnost. All Rights Reserved.