Annotation Interface Adapter


public @interface Adapter
Configuration for generating a adapter. A adapter is a 'function' that maps an object into an other. Example: When generating a Pojo from an interface or annotation, a adapter can be used to convert the source object into the generated pojo.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The class name of the generated Adapter.
    The prefix to add to the annotated class in order to create the adapter name.
    The relative path the pojo adapter be generated.
    The suffix to add to the annotated class in order to create the adapter name.
    boolean
    Flag to incluce mapping methods from map instances.
  • Element Details

    • name

      String name
      The class name of the generated Adapter.
      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 adapter name.
      Returns:
      The prefix.
      Default:
      ""
    • suffix

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

      String relativePath
      The relative path the pojo adapter be generated.
      Returns:
      The relative path.
      Default:
      ""
    • withMapAdapterMethod

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