public class FieldDefinitionDefinition extends Object
Required 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 and Description |
|---|
FieldDefinitionDefinition() |
FieldDefinitionDefinition(FieldExcludeDefinition fieldExcludeParent,
FieldDefinition fieldParent) |
| Modifier and Type | Method and Description |
|---|---|
DozerField |
convert() |
FieldExcludeDefinition |
end() |
FieldDefinition |
endField() |
FieldDefinitionDefinition |
withAccessible(Boolean accessible) |
FieldDefinitionDefinition |
withCreateMethod(String createMethod) |
FieldDefinitionDefinition |
withDateFormat(String dateFormat) |
FieldDefinitionDefinition |
withGetMethod(String getMethod) |
FieldDefinitionDefinition |
withKey(String key) |
FieldDefinitionDefinition |
withMapGetMethod(String mapGetMethod) |
FieldDefinitionDefinition |
withMapSetMethod(String mapSetMethod) |
FieldDefinitionDefinition |
withName(String name) |
FieldDefinitionDefinition |
withSetMethod(String setMethod) |
FieldDefinitionDefinition |
withType(FieldType type) |
public FieldDefinitionDefinition()
public FieldDefinitionDefinition(FieldExcludeDefinition fieldExcludeParent, FieldDefinition fieldParent)
public FieldDefinitionDefinition withName(String name)
public FieldDefinitionDefinition withDateFormat(String dateFormat)
public FieldDefinitionDefinition withType(FieldType type)
public FieldDefinitionDefinition withSetMethod(String setMethod)
public FieldDefinitionDefinition withGetMethod(String getMethod)
public FieldDefinitionDefinition withKey(String key)
public FieldDefinitionDefinition withMapSetMethod(String mapSetMethod)
public FieldDefinitionDefinition withMapGetMethod(String mapGetMethod)
public FieldDefinitionDefinition withAccessible(Boolean accessible)
public FieldDefinitionDefinition withCreateMethod(String createMethod)
public FieldExcludeDefinition end()
public FieldDefinition endField()
public DozerField convert()
Copyright © 2005–2021 dozer. All rights reserved.