Package org.jibx.schema.codegen.custom
Class GeneratorCustom
java.lang.Object
org.jibx.schema.codegen.custom.CustomBase
org.jibx.schema.codegen.custom.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.
- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Generator class name.private String[]
Parameter values for generator class instance.static final StringArray
Enumeration of allowed attribute names -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet class name.String[]
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
-
Field Details
-
s_allowedAttributes
Enumeration of allowed attribute names -
m_class
Generator class name. -
m_parameters
Parameter values for generator class instance.
-
-
Constructor Details
-
GeneratorCustom
Constructor.- Parameters:
parent
-
-
-
Method Details
-
preSet
Make sure all attributes are defined.- Parameters:
uctx
- unmarshalling context
-
getClassName
Get class name.- Returns:
- class
-
getParameters
Get parameter values.- Returns:
- parameters
-