Package io.sundr.builder.annotations
Annotation Interface Pojo
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAdapter[]Adapter configurationbooleanIndicates that the generated pojo will be autoboxed or not.booleanIndicates that the generated pojo will be initialized with default values or not.Class[]An array of interface to add to the Pojo.booleanIndicates 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.booleanFlag to include static mapping methods in the generated pojo.booleanFlag to include static builder method in the generated pojo.booleanFlag to incluce mapping methods from map instances.
-
Element Details
-
autobox
boolean autoboxIndicates that the generated pojo will be autoboxed or not.- Returns:
- true if autoboxing is enabled, false otherwise.t
- Default:
- false
-
initialize
boolean initializeIndicates 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 mutableIndicates 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 nameThe 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 prefixThe prefix to add to the annotated class in order to create the pojo name.- Returns:
- The prefix.
- Default:
- ""
-
suffix
String suffixThe suffix to add to the annotated class in order to create the pojo name.- Returns:
- The suffix.
- Default:
- ""
-
relativePath
String relativePathThe relative path the pojo will be generated.- Returns:
- The relative path.
- Default:
- ""
-
superClass
Class superClassThe super class to add to the generated pojo.- Returns:
- the super class.
- Default:
- java.lang.Object.class
-
interfaces
Class[] interfacesAn array of interface to add to the Pojo.- Returns:
- The interface array.
- Default:
- {}
-
withStaticBuilderMethod
boolean withStaticBuilderMethodFlag to include static builder method in the generated pojo.- Returns:
- True, if static builder should be included false, otherwise.
- Default:
- true
-
withStaticAdapterMethod
boolean withStaticAdapterMethodFlag 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 withStaticMapAdapterMethodFlag to incluce mapping methods from map instances.- Returns:
- True, if static adapter should be included, false, otherwise.
- Default:
- false
-
adapter
Adapter[] adapterAdapter configuration- Returns:
- The adapter configuration.
- Default:
- {}
-