Class FieldMap
- java.lang.Object
-
- com.github.dozermapper.core.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.
-
-
Field Summary
Fields Modifier and Type Field Description protected BeanContainerbeanContainerprotected DestBeanCreatordestBeanCreatorprotected PropertyDescriptorFactorypropertyDescriptorFactory
-
Constructor Summary
Constructors Constructor Description FieldMap(ClassMap classMap, BeanContainer beanContainer, DestBeanCreator destBeanCreator, PropertyDescriptorFactory propertyDescriptorFactory)
-
Method Summary
-
-
-
Field Detail
-
beanContainer
protected final BeanContainer beanContainer
-
destBeanCreator
protected final DestBeanCreator destBeanCreator
-
propertyDescriptorFactory
protected final PropertyDescriptorFactory propertyDescriptorFactory
-
-
Constructor Detail
-
FieldMap
public FieldMap(ClassMap classMap, BeanContainer beanContainer, DestBeanCreator destBeanCreator, PropertyDescriptorFactory propertyDescriptorFactory)
-
-
Method Detail
-
getClassMap
public ClassMap getClassMap()
-
setClassMap
public void setClassMap(ClassMap classMap)
-
getDestFieldWriteMethodParameter
@Deprecated public Class<?> getDestFieldWriteMethodParameter(Class<?> runtimeDestClass)
Deprecated.As of 3.2 releaseGets field param- Parameters:
runtimeDestClass- type- Returns:
- type
-
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)
-
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.- Returns:
- true if is self referencing
-
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()
-
getCustomConverterParam
public String getCustomConverterParam()
-
setCustomConverterParam
public void setCustomConverterParam(String customConverterParam)
-
-