|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.codegen.custom.CustomBase
org.jibx.schema.codegen.custom.GeneratorCustom
public class GeneratorCustom
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.
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 |
---|
public static final StringArray s_allowedAttributes
private java.lang.String m_class
private java.lang.String[] m_parameters
Constructor Detail |
---|
public GeneratorCustom(NestingCustomBase parent)
parent
- Method Detail |
---|
private void preSet(IUnmarshallingContext uctx)
uctx
- unmarshalling contextpublic java.lang.String getClassName()
public java.lang.String[] getParameters()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |