ma.glasnost.orika.metadata
Class FieldMap

java.lang.Object
  extended by ma.glasnost.orika.metadata.FieldMap
All Implemented Interfaces:
MappedTypePair<Object,Object>

public class FieldMap
extends Object
implements MappedTypePair<Object,Object>


Constructor Summary
FieldMap(Property a, Property b, Property aInverse, Property bInverse, MappingDirection mappingDirection, boolean excluded, String converterId, boolean byDefault, Boolean sourceMappedOnNull, Boolean destinationMappedOnNull)
           
 
Method Summary
 FieldMap copy()
           
 boolean equals(Object obj)
           
 FieldMap flip()
           
 Type<Object> getAType()
           
 Type<Object> getBType()
           
 String getConverterId()
           
 Property getDestination()
           
 String getDestinationExpression()
           
 Property getInverse()
           
 Property getSource()
           
 String getSourceExpression()
           
 int hashCode()
           
 boolean have(Specifications.Specification specification)
           
 boolean is(Specifications.Specification specification)
           
 boolean isByDefault()
           
 Boolean isDestinationMappedOnNull()
           
 boolean isExcluded()
           
 boolean isIgnored()
           
 Boolean isSourceMappedOnNull()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldMap

public FieldMap(Property a,
                Property b,
                Property aInverse,
                Property bInverse,
                MappingDirection mappingDirection,
                boolean excluded,
                String converterId,
                boolean byDefault,
                Boolean sourceMappedOnNull,
                Boolean destinationMappedOnNull)
Method Detail

copy

public FieldMap copy()

getSource

public Property getSource()

getDestination

public Property getDestination()

getAType

public Type<Object> getAType()
Specified by:
getAType in interface MappedTypePair<Object,Object>
Returns:
the 'A' type for this mapped pair

getBType

public Type<Object> getBType()
Specified by:
getBType in interface MappedTypePair<Object,Object>
Returns:
the 'B' type for this mapped pair

getSourceExpression

public String getSourceExpression()

getDestinationExpression

public String getDestinationExpression()

isSourceMappedOnNull

public Boolean isSourceMappedOnNull()
Returns:
the sourceMappedOnNull; can be null, which indicates no preference and that the global value should be used.

isDestinationMappedOnNull

public Boolean isDestinationMappedOnNull()
Returns:
destinationMappedOnNull; can be null, which indicates no preference and that the global value should be used.

getInverse

public Property getInverse()

isIgnored

public boolean isIgnored()

flip

public FieldMap flip()

is

public boolean is(Specifications.Specification specification)

have

public boolean have(Specifications.Specification specification)

getConverterId

public String getConverterId()

isByDefault

public boolean isByDefault()

isExcluded

public boolean isExcluded()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013 Glasnost. All Rights Reserved.