Class 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 inherited

    Required 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.