org.dozer.fieldmap
Class FieldMap
java.lang.Object
org.dozer.fieldmap.FieldMap
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- CustomGetSetMethodFieldMap, ExcludeFieldMap, GenericFieldMap, MapFieldMap
public abstract class FieldMap
- extends Object
- implements Cloneable
Internal class that represents a field mapping definition. Holds all of the information about a single field mapping
definition. Only intended for internal use.
- Author:
- garsombke.franz, sullins.ben, tierney.matt, johnsen.knut-erik
FieldMap
public FieldMap(ClassMap classMap)
getClassMap
public ClassMap getClassMap()
setClassMap
public void setClassMap(ClassMap classMap)
getSrcFieldValue
public Object getSrcFieldValue(Object runtimeSrcObj)
writeDestValue
public void writeDestValue(Object runtimeDestObj,
Object destFieldValue)
getDestHintType
public Class<?> getDestHintType(Class<?> runtimeSrcClass)
getDestFieldType
public Class<?> getDestFieldType(Class<?> runtimeDestClass)
getSrcFieldType
public Class<?> getSrcFieldType(Class<?> runtimeSrcClass)
getDestFieldWriteMethod
@Deprecated
public Method getDestFieldWriteMethod(Class<?> runtimeDestClass)
- Deprecated. As of 3.2 release
getGenericType
public Class<?> getGenericType(Class<?> runtimeDestClass)
getDestValue
public Object getDestValue(Object runtimeDestObj)
getDestHintContainer
public HintContainer getDestHintContainer()
setDestHintContainer
public void setDestHintContainer(HintContainer destHint)
getSrcHintContainer
public HintContainer getSrcHintContainer()
setSrcHintContainer
public void setSrcHintContainer(HintContainer sourceHint)
getSrcFieldMapGetMethod
public String getSrcFieldMapGetMethod()
getSrcFieldMapSetMethod
public String getSrcFieldMapSetMethod()
getDestFieldMapGetMethod
public String getDestFieldMapGetMethod()
getDestFieldMapSetMethod
public String getDestFieldMapSetMethod()
getSrcFieldName
public String getSrcFieldName()
getDestFieldName
public String getDestFieldName()
getDestFieldType
public String getDestFieldType()
getSrcFieldType
public String getSrcFieldType()
getDateFormat
public String getDateFormat()
getDestFieldCreateMethod
public String getDestFieldCreateMethod()
getSrcFieldCreateMethod
public String getSrcFieldCreateMethod()
isDestFieldIndexed
public boolean isDestFieldIndexed()
isSrcFieldIndexed
public boolean isSrcFieldIndexed()
getSrcFieldIndex
public int getSrcFieldIndex()
getDestFieldIndex
public int getDestFieldIndex()
getSrcFieldTheGetMethod
public String getSrcFieldTheGetMethod()
getDestFieldTheGetMethod
public String getDestFieldTheGetMethod()
getSrcFieldTheSetMethod
public String getSrcFieldTheSetMethod()
getDestFieldTheSetMethod
public String getDestFieldTheSetMethod()
getSrcFieldKey
public String getSrcFieldKey()
getDestFieldKey
public String getDestFieldKey()
isDestFieldAccessible
public boolean isDestFieldAccessible()
isSrcFieldAccessible
public boolean isSrcFieldAccessible()
setSrcField
public void setSrcField(DozerField sourceField)
setDestField
public void setDestField(DozerField destField)
getDestDeepIndexHintContainer
public HintContainer getDestDeepIndexHintContainer()
setDestDeepIndexHintContainer
public void setDestDeepIndexHintContainer(HintContainer destDeepIndexHintHint)
getSrcDeepIndexHintContainer
public HintContainer getSrcDeepIndexHintContainer()
setSrcDeepIndexHintContainer
public void setSrcDeepIndexHintContainer(HintContainer srcDeepIndexHint)
clone
public Object clone()
- Overrides:
clone in class Object
getType
public MappingDirection getType()
setType
public void setType(MappingDirection type)
isCopyByReference
public boolean isCopyByReference()
setCopyByReference
public void setCopyByReference(boolean copyByReference)
isSrcSelfReferencing
protected boolean isSrcSelfReferencing()
- Return true if is self referencing. Is considered self referencing where no other sources are specified, i.e., no
source properties or #CDATA in the xml def.
isDestSelfReferencing
protected boolean isDestSelfReferencing()
isCopyByReferenceOveridden
public boolean isCopyByReferenceOveridden()
getMapId
public String getMapId()
setMapId
public void setMapId(String mapId)
getCustomConverter
public String getCustomConverter()
setCustomConverter
public void setCustomConverter(String customConverter)
getRelationshipType
public RelationshipType getRelationshipType()
setRelationshipType
public void setRelationshipType(RelationshipType relationshipType)
validate
public void validate()
getSrcPropertyDescriptor
protected DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass)
getDestPropertyDescriptor
protected DozerPropertyDescriptor getDestPropertyDescriptor(Class<?> runtimeDestClass)
getSrcFieldCopy
public DozerField getSrcFieldCopy()
getDestFieldCopy
public DozerField getDestFieldCopy()
getSrcField
protected DozerField getSrcField()
getDestField
protected DozerField getDestField()
getCustomConverterId
public String getCustomConverterId()
setCustomConverterId
public void setCustomConverterId(String customConverterId)
isRemoveOrphans
public boolean isRemoveOrphans()
setRemoveOrphans
public void setRemoveOrphans(boolean removeOrphans)
isDestMapNull
public boolean isDestMapNull()
isDestMapEmptyString
public boolean isDestMapEmptyString()
isTrimStrings
public boolean isTrimStrings()
isStopOnErrors
public boolean isStopOnErrors()
isNonCumulativeRelationship
public boolean isNonCumulativeRelationship()
toString
public String toString()
- Overrides:
toString in class Object
getCustomConverterParam
public String getCustomConverterParam()
setCustomConverterParam
public void setCustomConverterParam(String customConverterParam)
Copyright © 2005-2011 dozer. All Rights Reserved.