Class GeneratorCustom

java.lang.Object
org.jibx.schema.codegen.custom.CustomBase
org.jibx.schema.codegen.custom.GeneratorCustom

public class GeneratorCustom extends CustomBase
Generator customization. TODO: use separate subclasses for the different types of generation, or an interface? looks like there'll only be a few alternatives (normal class, enumeration, collection). or have generators for different types of fields, and such? that gives the maximum flexibility, but also adds a lot of complexity. at a minimum, need to support different types of generators for enumeration, choice, union, and collection value types. would also like to support different validation method generators, orthogonal to the other variations. finally, want to support different JavaDoc formatters. perhaps best to use a separate class for each.
Author:
Dennis M. Sosnoski
  • Field Details

    • s_allowedAttributes

      public static final StringArray s_allowedAttributes
      Enumeration of allowed attribute names
    • m_class

      private String m_class
      Generator class name.
    • m_parameters

      private String[] m_parameters
      Parameter values for generator class instance.
  • Constructor Details

    • GeneratorCustom

      public GeneratorCustom(NestingCustomBase parent)
      Constructor.
      Parameters:
      parent -
  • Method Details

    • preSet

      private void preSet(IUnmarshallingContext uctx)
      Make sure all attributes are defined.
      Parameters:
      uctx - unmarshalling context
    • getClassName

      public String getClassName()
      Get class name.
      Returns:
      class
    • getParameters

      public String[] getParameters()
      Get parameter values.
      Returns:
      parameters