Class ELClassDefinition
- java.lang.Object
-
- com.github.dozermapper.core.builder.model.jaxb.ClassDefinition
-
- com.github.dozermapper.core.builder.model.elengine.ELClassDefinition
-
public class ELClassDefinition extends ClassDefinition
Specifies one of the classes in the mapping definition. All Mapping definitions are bi-directional by default. Global configuration and Mapping element values are inheritedRequired Attributes:
Optional Attributes:
bean-factory The factory class to create data objects. This typically will not be specified. By default Dozer constructs new instances of data objects by invoking the no-arg constructor
factory-bean-id The id passed to the specified bean factory
map-set-method For Map backed objects, this indicates which setter method should be used to retrieve field values. This should only be used of Map backed objects.
map-get-method For Map backed objects, this indicates which getter method should be used to retrieve field values. This should only be used of Map backed objects.
create-method Which method to invoke to create a new instance of the class. This is typically not specified. By default, the no arg constructor(public or private) is used
map-null Indicates whether null values are mapped. The default value is "true"
map-empty-string Indicates whether empty string values are mapped. The default value is "true"
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.
-
-
Field Summary
-
Fields inherited from class com.github.dozermapper.core.builder.model.jaxb.ClassDefinition
beanFactory, clazz, createMethod, factoryBeanId, isAccessible, mapEmptyString, mapGetMethod, mapNull, mapSetMethod, skipConstructor
-
-
Constructor Summary
Constructors Constructor Description ELClassDefinition(ELEngine elEngine, ClassDefinition copy)ELClassDefinition(ELEngine elEngine, MappingDefinition parentMappingDefinition, ConverterTypeDefinition parentConverterTypeDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DozerClassbuild(BeanContainer beanContainer)-
Methods inherited from class com.github.dozermapper.core.builder.model.jaxb.ClassDefinition
end, endType, getBeanFactory, getClazz, getCreateMethod, getFactoryBeanId, getIsAccessible, getMapEmptyString, getMapGetMethod, getMapNull, getMapSetMethod, getParentConverterTypeDefinition, getParentMappingDefinition, getSkipConstructor, setBeanFactory, setClazz, setCreateMethod, setFactoryBeanId, setIsAccessible, setMapEmptyString, setMapGetMethod, setMapNull, setMapSetMethod, setSkipConstructor, withAccessible, withBeanFactory, withClazz, withCreateMethod, withFactoryBeanId, withMapEmptyString, withMapGetMethod, withMapNull, withMapSetMethod, withSkipConstructor
-
-
-
-
Constructor Detail
-
ELClassDefinition
public ELClassDefinition(ELEngine elEngine, ClassDefinition copy)
-
ELClassDefinition
public ELClassDefinition(ELEngine elEngine, MappingDefinition parentMappingDefinition, ConverterTypeDefinition parentConverterTypeDefinition)
-
-
Method Detail
-
build
public DozerClass build(BeanContainer beanContainer)
- Overrides:
buildin classClassDefinition
-
-