Class BindGenCommandLine


public class BindGenCommandLine extends SchemaGenCommandLine
Command line processing specifically for the BindGen class.
Author:
Dennis M. Sosnoski
  • Field Details

    • EXTRA_USAGE_LINES

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

      private Boolean m_abstract
      TRUE if abstract mappings forced, FALSE if concrete mappings forced, null if left to class settings.
    • m_global

      private GlobalCustom m_global
      Customizations model root.
    • m_bindingName

      private String m_bindingName
      Name used for root binding.
    • m_bindingOnly

      private boolean m_bindingOnly
      Binding generation only flag (skip schema generation).
  • Constructor Details

    • BindGenCommandLine

      public BindGenCommandLine()
      Constructor.
  • Method Details

    • getAbstract

      public Boolean getAbstract()
      Get force abstract mapping setting.
      Returns:
      TRUE if abstract mappings forced, FALSE if concrete mappings forced, null if left to class settings
    • getGlobal

      public GlobalCustom getGlobal()
      Get customizations model root.
      Overrides:
      getGlobal in class SchemaGenCommandLine
      Returns:
      customizations
    • getBindingName

      public String getBindingName()
      Get binding name.
      Returns:
      name
    • isBindingOnly

      public boolean isBindingOnly()
      Check if only binding generation to be done.
      Returns:
      true if only binding generation, false if both binding and schema
    • 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 SchemaGenCommandLine
      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.
      Overrides:
      loadCustomizations in class SchemaGenCommandLine
      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.
      Overrides:
      applyOverrides in class SchemaGenCommandLine
      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.
      Overrides:
      printUsage in class SchemaGenCommandLine