Module io.github.mmm.bean.generator
Package io.github.mmm.bean.generator
Class BeanPropertyContainer
java.lang.Object
io.github.mmm.bean.generator.BeanPropertyContainer
Container for a
BeanPropertyContainer.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(BeanMethodContainer method) getName()Class<?> getType()toString()voidwriteField(Writer writer) Writes the property field declaration.voidwriteFieldInitializer(Writer writer) Writes the property field initializer statement for constructor.voidwriteMethods(Writer writer) Writes the methods.
-
Constructor Details
-
BeanPropertyContainer
The constructor.- Parameters:
name- theName.
-
-
Method Details
-
getName
- Returns:
- the name of the property.
-
getPropertyMethod
- Returns:
- propertyMethod
-
getGetterMethod
- Returns:
- getterMethod
-
getSetterMethod
- Returns:
- setterMethod
-
add
- Parameters:
method- theBeanMethodContainerto register in thisBeanPropertyContainer.
-
getType
- Returns:
- type
-
getPropertyType
- Returns:
- propertyType
-
writeField
Writes the property field declaration.- Parameters:
writer- theWriter.- Throws:
IOException- on error.
-
writeFieldInitializer
Writes the property field initializer statement for constructor.- Parameters:
writer- theWriter.- Throws:
IOException- on error.
-
writeMethods
Writes the methods.- Parameters:
writer- theWriter.- Throws:
IOException- on error.
-
toString
-