org.jibx.schema.codegen.custom
Class GeneratorCustom

java.lang.Object
  extended by org.jibx.schema.codegen.custom.CustomBase
      extended by 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 Summary
private  java.lang.String m_class
          Generator class name.
private  java.lang.String[] m_parameters
          Parameter values for generator class instance.
static StringArray s_allowedAttributes
          Enumeration of allowed attribute names
 
Constructor Summary
GeneratorCustom(NestingCustomBase parent)
          Constructor.
 
Method Summary
 java.lang.String getClassName()
          Get class name.
 java.lang.String[] getParameters()
          Get parameter values.
private  void preSet(IUnmarshallingContext uctx)
          Make sure all attributes are defined.
 
Methods inherited from class org.jibx.schema.codegen.custom.CustomBase
getContainingObject, getParent, getSchemaRoot, setParent, validateAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_allowedAttributes

public static final StringArray s_allowedAttributes
Enumeration of allowed attribute names


m_class

private java.lang.String m_class
Generator class name.


m_parameters

private java.lang.String[] m_parameters
Parameter values for generator class instance.

Constructor Detail

GeneratorCustom

public GeneratorCustom(NestingCustomBase parent)
Constructor.

Parameters:
parent -
Method Detail

preSet

private void preSet(IUnmarshallingContext uctx)
Make sure all attributes are defined.

Parameters:
uctx - unmarshalling context

getClassName

public java.lang.String getClassName()
Get class name.

Returns:
class

getParameters

public java.lang.String[] getParameters()
Get parameter values.

Returns:
parameters


Project Web Site