Annotation Interface Pojo


@Target({CONSTRUCTOR,TYPE}) @Retention(SOURCE) public @interface Pojo
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Adapter configuration
    boolean
    Indicates that the generated pojo will be autoboxed or not.
    boolean
    Indicates that the generated pojo will be initialized with default values or not.
    An array of interface to add to the Pojo.
    boolean
    Indicates that the generated pojo will be mutable or not.
    The class name of the generated Pojo.
    The prefix to add to the annotated class in order to create the pojo name.
    The relative path the pojo will be generated.
    The suffix to add to the annotated class in order to create the pojo name.
    The super class to add to the generated pojo.
    boolean
    Flag to include static mapping methods in the generated pojo.
    boolean
    Flag to include static builder method in the generated pojo.
    boolean
    Flag to incluce mapping methods from map instances.
  • Element Details

    • autobox

      boolean autobox
      Indicates that the generated pojo will be autoboxed or not.
      Returns:
      true if autoboxing is enabled, false otherwise.t
      Default:
      false
    • initialize

      boolean initialize
      Indicates that the generated pojo will be initialized with default values or not.
      Returns:
      true if default value initialization is enabled, false otherwise.t
      Default:
      false
    • mutable

      boolean mutable
      Indicates that the generated pojo will be mutable or not. If not mutable all properties will be final and no default constructor will be provided.
      Returns:
      true if mutable, false otherwise.t
      Default:
      false
    • name

      String name
      The class name of the generated Pojo.
      Returns:
      The class name, or empty (default) if the name is to be the implicitly specified.
      Default:
      ""
    • prefix

      String prefix
      The prefix to add to the annotated class in order to create the pojo name.
      Returns:
      The prefix.
      Default:
      ""
    • suffix

      String suffix
      The suffix to add to the annotated class in order to create the pojo name.
      Returns:
      The suffix.
      Default:
      ""
    • relativePath

      String relativePath
      The relative path the pojo will be generated.
      Returns:
      The relative path.
      Default:
      ""
    • superClass

      Class superClass
      The super class to add to the generated pojo.
      Returns:
      the super class.
      Default:
      java.lang.Object.class
    • interfaces

      Class[] interfaces
      An array of interface to add to the Pojo.
      Returns:
      The interface array.
      Default:
      {}
    • withStaticBuilderMethod

      boolean withStaticBuilderMethod
      Flag to include static builder method in the generated pojo.
      Returns:
      True, if static builder should be included false, otherwise.
      Default:
      true
    • withStaticAdapterMethod

      boolean withStaticAdapterMethod
      Flag to include static mapping methods in the generated pojo. The adapter just maps the source interface/annotation to the generated pojo.
      Returns:
      True, if static adapter should be included false, otherwise.
      Default:
      true
    • withStaticMapAdapterMethod

      boolean withStaticMapAdapterMethod
      Flag to incluce mapping methods from map instances.
      Returns:
      True, if static adapter should be included, false, otherwise.
      Default:
      false
    • adapter

      Adapter[] adapter
      Adapter configuration
      Returns:
      The adapter configuration.
      Default:
      {}