ma.glasnost.orika.impl.mapping.strategy
Class AbstractMappingStrategy

java.lang.Object
  extended by ma.glasnost.orika.impl.mapping.strategy.AbstractMappingStrategy
All Implemented Interfaces:
MappingStrategy
Direct Known Subclasses:
UseConverterStrategy, UseCustomMapperStrategy

public abstract class AbstractMappingStrategy
extends Object
implements MappingStrategy

AbstractMappingStrategy provides base MappingStrategy functionality


Field Summary
protected  Type<Object> destinationType
          The destination type mapped by this strategy
protected  Type<Object> sourceType
          The source type mapped by this strategy
 
Constructor Summary
AbstractMappingStrategy(Type<Object> sourceType, Type<Object> destinationType)
           
 
Method Summary
 Type<?> getDestinationType()
           
 Type<?> getSoureType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ma.glasnost.orika.impl.mapping.strategy.MappingStrategy
map
 

Field Detail

sourceType

protected final Type<Object> sourceType
The source type mapped by this strategy


destinationType

protected final Type<Object> destinationType
The destination type mapped by this strategy

Constructor Detail

AbstractMappingStrategy

public AbstractMappingStrategy(Type<Object> sourceType,
                               Type<Object> destinationType)
Parameters:
sourceType -
destinationType -
Method Detail

getSoureType

public Type<?> getSoureType()
Specified by:
getSoureType in interface MappingStrategy
Returns:
the source type handled by this strategy

getDestinationType

public Type<?> getDestinationType()
Specified by:
getDestinationType in interface MappingStrategy
Returns:
the destination type handled by this strategy

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Glasnost. All Rights Reserved.