Package org.jibx.schema.codegen.extend
Class ListImplementationDecorator
java.lang.Object
org.jibx.schema.codegen.extend.ListImplementationDecorator
- All Implemented Interfaces:
ClassDecorator
Code generation decorator which changes the implementation class used for
java.util.List instances.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish(ElementBase binding, IClassHolder holder) Method called after completing code generation for the target class.voidsetListClass(String name) Set list class to be used.voidstart(IClassHolder holder) Method called before starting code generation for the target class.voidvalueAdded(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.
-
Field Details
-
m_listClass
List implementation class to be used.
-
-
Constructor Details
-
ListImplementationDecorator
public ListImplementationDecorator()
-
-
Method Details
-
setListClass
Set list class to be used.- Parameters:
name-
-
finish
Method called after completing code generation for the target class. Unused for this decorator.- Specified by:
finishin interfaceClassDecorator- Parameters:
binding-holder-
-
start
Method called before starting code generation for the target class. This just sets the list implementation class.- Specified by:
startin interfaceClassDecorator- Parameters:
holder-
-
valueAdded
public 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. Unused for this decorator.- Specified by:
valueAddedin 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-
-