public class NestedClassGenerator extends Object
Nested POJOs represent complex data structures. Those POJOs are meant to be static nested classes of the main component class. The nested POJOs can be used in method calls, property getters/setters and inside events.
| Constructor and Description |
|---|
NestedClassGenerator() |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.forge.roaster.model.source.JavaClassSource |
build()
Builds the Java class by using the defined settings.
|
NestedClassGenerator |
withFluentSetters(boolean fluentSetters)
Sets whether the generated POJO should contain fluent setters or not.
|
NestedClassGenerator |
withNameHint(String nameHint)
Sets the name hint that will be used to generate the final name of the
generated class.
|
NestedClassGenerator |
withType(ComponentObjectType type)
Sets the
ComponentObjectType this generator will use to create
the getters and setters for the properties. |
public NestedClassGenerator withType(ComponentObjectType type)
ComponentObjectType this generator will use to create
the getters and setters for the properties.type - The ComponentObjectType instance containing the object
definition.public NestedClassGenerator withNameHint(String nameHint)
nameHint - The hint which is the base for the final name of the class.public NestedClassGenerator withFluentSetters(boolean fluentSetters)
true.fluentSetters - true to enable fluent setters, false
otherwise.public org.jboss.forge.roaster.model.source.JavaClassSource build()
Copyright © 2000–2019 Vaadin Ltd. All rights reserved.