Package io.sundr.builder.annotations
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 ElementsModifier and TypeOptional ElementDescriptionThe 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.booleanFlag to incluce mapping methods from map instances.
-
Element Details
-
name
String nameThe 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 prefixThe prefix to add to the annotated class in order to create the adapter name.- Returns:
- The prefix.
- Default:
- ""
-
suffix
String suffixThe suffix to add to the annotated class in order to create the adapter name.- Returns:
- The suffix.
- Default:
- ""
-
relativePath
String relativePathThe relative path the pojo adapter be generated.- Returns:
- The relative path.
- Default:
- ""
-
withMapAdapterMethod
boolean withMapAdapterMethodFlag to incluce mapping methods from map instances.- Returns:
- True, if adapter method should be included, false, otherwise.
- Default:
- false
-