Class 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 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