org.dozer.fieldmap
Class FieldMap

java.lang.Object
  extended by 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

Constructor Summary
FieldMap(ClassMap classMap)
           
 
Method Summary
 Object clone()
           
 ClassMap getClassMap()
           
 String getCustomConverter()
           
 String getCustomConverterId()
           
 String getCustomConverterParam()
           
 String getDateFormat()
           
 HintContainer getDestDeepIndexHintContainer()
           
protected  DozerField getDestField()
           
 DozerField getDestFieldCopy()
           
 String getDestFieldCreateMethod()
           
 int getDestFieldIndex()
           
 String getDestFieldKey()
           
 String getDestFieldMapGetMethod()
           
 String getDestFieldMapSetMethod()
           
 String getDestFieldName()
           
 String getDestFieldTheGetMethod()
           
 String getDestFieldTheSetMethod()
           
 String getDestFieldType()
           
 Class<?> getDestFieldType(Class<?> runtimeDestClass)
           
 Method getDestFieldWriteMethod(Class<?> runtimeDestClass)
          Deprecated. As of 3.2 release
 HintContainer getDestHintContainer()
           
 Class<?> getDestHintType(Class<?> runtimeSrcClass)
           
protected  DozerPropertyDescriptor getDestPropertyDescriptor(Class<?> runtimeDestClass)
           
 Object getDestValue(Object runtimeDestObj)
           
 Class<?> getGenericType(Class<?> runtimeDestClass)
           
 String getMapId()
           
 RelationshipType getRelationshipType()
           
 HintContainer getSrcDeepIndexHintContainer()
           
protected  DozerField getSrcField()
           
 DozerField getSrcFieldCopy()
           
 String getSrcFieldCreateMethod()
           
 int getSrcFieldIndex()
           
 String getSrcFieldKey()
           
 String getSrcFieldMapGetMethod()
           
 String getSrcFieldMapSetMethod()
           
 String getSrcFieldName()
           
 String getSrcFieldTheGetMethod()
           
 String getSrcFieldTheSetMethod()
           
 String getSrcFieldType()
           
 Class<?> getSrcFieldType(Class<?> runtimeSrcClass)
           
 Object getSrcFieldValue(Object runtimeSrcObj)
           
 HintContainer getSrcHintContainer()
           
protected  DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass)
           
 MappingDirection getType()
           
 boolean isCopyByReference()
           
 boolean isCopyByReferenceOveridden()
           
 boolean isDestFieldAccessible()
           
 boolean isDestFieldIndexed()
           
 boolean isDestMapEmptyString()
           
 boolean isDestMapNull()
           
protected  boolean isDestSelfReferencing()
           
 boolean isNonCumulativeRelationship()
           
 boolean isRemoveOrphans()
           
 boolean isSrcFieldAccessible()
           
 boolean isSrcFieldIndexed()
           
protected  boolean isSrcSelfReferencing()
          Return true if is self referencing.
 boolean isStopOnErrors()
           
 boolean isTrimStrings()
           
 void setClassMap(ClassMap classMap)
           
 void setCopyByReference(boolean copyByReference)
           
 void setCustomConverter(String customConverter)
           
 void setCustomConverterId(String customConverterId)
           
 void setCustomConverterParam(String customConverterParam)
           
 void setDestDeepIndexHintContainer(HintContainer destDeepIndexHintHint)
           
 void setDestField(DozerField destField)
           
 void setDestHintContainer(HintContainer destHint)
           
 void setMapId(String mapId)
           
 void setRelationshipType(RelationshipType relationshipType)
           
 void setRemoveOrphans(boolean removeOrphans)
           
 void setSrcDeepIndexHintContainer(HintContainer srcDeepIndexHint)
           
 void setSrcField(DozerField sourceField)
           
 void setSrcHintContainer(HintContainer sourceHint)
           
 void setType(MappingDirection type)
           
 String toString()
           
 void validate()
           
 void writeDestValue(Object runtimeDestObj, Object destFieldValue)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldMap

public FieldMap(ClassMap classMap)
Method Detail

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.