ma.glasnost.orika.metadata
Class FieldMap
java.lang.Object
ma.glasnost.orika.metadata.FieldMap
- All Implemented Interfaces:
- MappedTypePair<Object,Object>
public class FieldMap
- extends Object
- implements MappedTypePair<Object,Object>
FieldMap
public FieldMap(Property a,
Property b,
Property aInverse,
Property bInverse,
MappingDirection mappingDirection,
boolean excluded,
String converterId,
boolean byDefault,
Boolean sourceMappedOnNull,
Boolean destinationMappedOnNull)
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.