Class SchemaGenCommandLine

Direct Known Subclasses:
BindGenCommandLine, WsdlGeneratorCommandLine

public class SchemaGenCommandLine extends ClassCustomizationBase
Command line processing specifically for the SchemaGen class. TODO: Split this into abstract base class which the existing subclasdses can extend directly, plus separate subclass
Author:
Dennis M. Sosnoski
  • Field Details

    • EXTRA_USAGE_LINES

      private static final String[] EXTRA_USAGE_LINES
      Ordered array of extra usage lines.
    • m_global

      private GlobalCustom m_global
      Customizations model root.
    • m_uriNames

      private Map m_uriNames
      Namespace URI to file name map.
    • m_locator

      private IClassLocator m_locator
      Class locator used to complete customizations.
  • Constructor Details

    • SchemaGenCommandLine

      public SchemaGenCommandLine()
      Constructor for when class is used directly.
    • SchemaGenCommandLine

      protected SchemaGenCommandLine(String[] lines)
      Constructor used by subclasses.
      Parameters:
      lines -
  • Method Details

    • getLocator

      public IClassLocator getLocator()
      Get class locator.
      Returns:
      locator
    • setLocator

      protected void setLocator(IClassLocator locator)
      Set class locator.
      Parameters:
      locator -
    • getGlobal

      public GlobalCustom getGlobal()
      Get customizations model root.
      Returns:
      customizations
    • getUriNames

      public Map getUriNames()
      Get schema namespace URI to name map.
      Returns:
      map
    • addUriNamePair

      private boolean addUriNamePair(String text)
      Add uri=name pair to map.
      Parameters:
      text -
      Returns:
      true if valid, false if not
    • checkParameter

      protected boolean checkParameter(CustomizationCommandLineBase.ArgList alist)
      Description copied from class: ClassCustomizationBase
      Check if an extension parameter is recognized. Subclasses which override this method should call the base class method before doing their own checks, and only perform their own checks if this method returns false..
      Overrides:
      checkParameter in class ClassCustomizationBase
      Parameters:
      alist - argument list
      Returns:
      true if parameter processed, false if unknown
    • loadCustomizations

      protected void loadCustomizations(String path, IClassLocator loc, ValidationContext vctx) throws JiBXException, IOException
      Description copied from class: ClassCustomizationBase
      Load the customizations file. This method must load the specified customizations file, or create a default customizations instance, of the appropriate type.
      Specified by:
      loadCustomizations in class ClassCustomizationBase
      Parameters:
      path - customizations file path, null if none
      loc - class locator
      vctx - validation context
      Throws:
      JiBXException
      IOException
    • applyOverrides

      protected Map applyOverrides(Map overmap)
      Description copied from class: CustomizationCommandLineBase
      Apply map of override values to customizations read from file or created as default.
      Specified by:
      applyOverrides in class CustomizationCommandLineBase
      Parameters:
      overmap - override key-value map
      Returns:
      map for key/values not recognized
    • printUsage

      public void printUsage()
      Description copied from class: CustomizationCommandLineBase
      Print usage information.
      Specified by:
      printUsage in class CustomizationCommandLineBase