Package org.jibx.schema.codegen.extend
Class ListImplementationDecorator
- java.lang.Object
-
- org.jibx.schema.codegen.extend.ListImplementationDecorator
-
- All Implemented Interfaces:
ClassDecorator
public class ListImplementationDecorator extends java.lang.Object implements ClassDecorator
Code generation decorator which changes the implementation class used forjava.util.List
instances.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
m_listClass
List implementation class to be used.
-
Constructor Summary
Constructors Constructor Description ListImplementationDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish(ElementBase binding, IClassHolder holder)
Method called after completing code generation for the target class.void
setListClass(java.lang.String name)
Set list class to be used.void
start(IClassHolder holder)
Method called before starting code generation for the target class.void
valueAdded(java.lang.String basename, boolean collect, java.lang.String type, FieldDeclaration field, MethodDeclaration getmeth, MethodDeclaration setmeth, java.lang.String descript, IClassHolder holder)
Method called after adding each data value to class.
-
-
-
Method Detail
-
setListClass
public void setListClass(java.lang.String name)
Set list class to be used.- Parameters:
name
-
-
finish
public void finish(ElementBase binding, IClassHolder holder)
Method called after completing code generation for the target class. Unused for this decorator.- Specified by:
finish
in interfaceClassDecorator
- Parameters:
binding
-holder
-
-
start
public void start(IClassHolder holder)
Method called before starting code generation for the target class. This just sets the list implementation class.- Specified by:
start
in interfaceClassDecorator
- Parameters:
holder
-
-
valueAdded
public void valueAdded(java.lang.String basename, boolean collect, java.lang.String type, FieldDeclaration field, MethodDeclaration getmeth, MethodDeclaration setmeth, java.lang.String descript, IClassHolder holder)
Method called after adding each data value to class. Unused for this decorator.- Specified by:
valueAdded
in interfaceClassDecorator
- 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 methodsetmeth
- write access methoddescript
- value description textholder
-
-
-