Class ListImplementationDecorator

java.lang.Object
org.jibx.schema.codegen.extend.ListImplementationDecorator
All Implemented Interfaces:
ClassDecorator

public class ListImplementationDecorator extends Object implements ClassDecorator
Code generation decorator which changes the implementation class used for java.util.List instances.
  • Field Details

    • m_listClass

      private String m_listClass
      List implementation class to be used.
  • Constructor Details

    • ListImplementationDecorator

      public ListImplementationDecorator()
  • Method Details

    • setListClass

      public void setListClass(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 interface ClassDecorator
      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 interface ClassDecorator
      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:
      valueAdded in interface ClassDecorator
      Parameters:
      basename - base name used for data value
      collect - repeated value flag
      type - value type (item value type, in the case of a repeated value)
      field - actual field
      getmeth - read access method
      setmeth - write access method
      descript - value description text
      holder -