Class FieldDefinitionDefinition
- java.lang.Object
-
- com.github.dozermapper.core.builder.model.jaxb.FieldDefinitionDefinition
-
public class FieldDefinitionDefinition extends Object
Specifies one of the fields in the field mapping definition. Global configuration, mapping, class, and field element values are inheritedRequired Attributes:
Optional Attributes:
date-format The string format of Date fields. This is used for field mapping between Strings and Dates
set-method Indicates which set method to invoke when setting the destination value. Typically this will not be specified. By default, the beans attribute setter is used.
get-method Indicates which get method to invoke on the src object to get the field value Typically this will not be specified. By default, the beans attribute getter is used.
is-accessible Indicates whether Dozer bypasses getter/setter methods and accesses the field directly. This will typically be set to "false". The default value is "false". If set to "true", the getter/setter methods will NOT be invoked. You would want to set this to "true" if the field is lacking a getter or setter method skip-constructor Indicates whether Dozer bypasses constructors and instantiates an object with a no-arg constructor.
-
-
Constructor Summary
Constructors Constructor Description FieldDefinitionDefinition()FieldDefinitionDefinition(FieldExcludeDefinition fieldExcludeParent, FieldDefinition fieldParent)
-
Method Summary
-
-
-
Constructor Detail
-
FieldDefinitionDefinition
public FieldDefinitionDefinition()
-
FieldDefinitionDefinition
public FieldDefinitionDefinition(FieldExcludeDefinition fieldExcludeParent, FieldDefinition fieldParent)
-
-
Method Detail
-
withName
public FieldDefinitionDefinition withName(String name)
-
withDateFormat
public FieldDefinitionDefinition withDateFormat(String dateFormat)
-
withType
public FieldDefinitionDefinition withType(FieldType type)
-
withSetMethod
public FieldDefinitionDefinition withSetMethod(String setMethod)
-
withGetMethod
public FieldDefinitionDefinition withGetMethod(String getMethod)
-
withKey
public FieldDefinitionDefinition withKey(String key)
-
withMapSetMethod
public FieldDefinitionDefinition withMapSetMethod(String mapSetMethod)
-
withMapGetMethod
public FieldDefinitionDefinition withMapGetMethod(String mapGetMethod)
-
withAccessible
public FieldDefinitionDefinition withAccessible(Boolean accessible)
-
withCreateMethod
public FieldDefinitionDefinition withCreateMethod(String createMethod)
-
end
public FieldExcludeDefinition end()
-
endField
public FieldDefinition endField()
-
convert
public DozerField convert()
-
getFieldExcludeParent
public FieldExcludeDefinition getFieldExcludeParent()
-
getFieldParent
public FieldDefinition getFieldParent()
-
getName
public String getName()
-
setName
protected void setName(String name)
-
getDateFormat
public String getDateFormat()
-
setDateFormat
protected void setDateFormat(String dateFormat)
-
getType
public FieldType getType()
-
setType
protected void setType(FieldType type)
-
getSetMethod
public String getSetMethod()
-
setSetMethod
protected void setSetMethod(String setMethod)
-
getGetMethod
public String getGetMethod()
-
setGetMethod
protected void setGetMethod(String getMethod)
-
getKey
public String getKey()
-
setKey
protected void setKey(String key)
-
getMapSetMethod
public String getMapSetMethod()
-
setMapSetMethod
protected void setMapSetMethod(String mapSetMethod)
-
getMapGetMethod
public String getMapGetMethod()
-
setMapGetMethod
protected void setMapGetMethod(String mapGetMethod)
-
getIsAccessible
public Boolean getIsAccessible()
-
setIsAccessible
protected void setIsAccessible(Boolean accessible)
-
getCreateMethod
public String getCreateMethod()
-
setCreateMethod
protected void setCreateMethod(String createMethod)
-
-