Package org.jibx.schema.codegen.extend
Interface ClassDecorator
- All Known Implementing Classes:
CollectionMethodsDecorator
,ExtensionDecorator
,ListImplementationDecorator
,NameMatchDecoratorBase
,SerializableDecorator
public interface ClassDecorator
Interface implemented by class construction decorators used during code generation.
- Author:
- Dennis M. Sosnoski
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish
(ElementBase binding, IClassHolder holder) Method called after completing code generation for the target class.void
start
(IClassHolder holder) Method called before starting code generation for the target class.void
valueAdded
(String basename, boolean collect, String type, FieldDeclaration field, MethodDeclaration getmeth, MethodDeclaration setmeth, String descript, IClassHolder holder) Method called after adding each data value to class.
-
Method Details
-
start
Method called before starting code generation for the target class.- Parameters:
holder
-
-
valueAdded
void valueAdded(String basename, boolean collect, String type, FieldDeclaration field, MethodDeclaration getmeth, MethodDeclaration setmeth, String descript, IClassHolder holder) Method called after adding each data value to class.- Parameters:
basename
- base name used for data valuecollect
- repeated value flagtype
- value type (item value type, in the case of a repeated value)field
- actual fieldgetmeth
- read access method (null
if a flag value)setmeth
- write access method (null
if a flag value)descript
- value description textholder
-
-
finish
Method called after completing code generation for the target class.- Parameters:
binding
- binding definition element for class, a <format> if the class is an enumeration, a <mapping> or <structure> if it's a normal classholder
-
-