Class SchemaCommandLineBase

  • Direct Known Subclasses:
    RefactoryCommandLine

    public abstract class SchemaCommandLineBase
    extends CustomizationCommandLineBase
    Command line processing for tools working with schemas. TODO: take schema root directory handling from CodeGenCommandLine
    Author:
    Dennis M. Sosnoski
    • Field Detail

      • EXTRA_USAGE_LINES

        private static final java.lang.String[] EXTRA_USAGE_LINES
        Ordered array of extra usage lines.
      • m_rootPath

        private java.lang.String m_rootPath
        Schema root URL path.
      • m_schemaRoot

        private java.net.URL m_schemaRoot
        Root URL for schemas.
      • m_schemaDir

        private java.io.File m_schemaDir
        Root directory for schemas (null if not a file system root).
      • m_customRoot

        private SchemasetCustom m_customRoot
        Customizations model root.
    • Constructor Detail

      • SchemaCommandLineBase

        public SchemaCommandLineBase()
        Constructor.
    • Method Detail

      • getSchemaRoot

        public java.net.URL getSchemaRoot()
        Get root URL for schemas.
        Returns:
        directory
      • getSchemaDir

        public java.io.File getSchemaDir()
        Get root directory for schemas.
        Returns:
        directory (null if root is not a directory)
      • getCustomRoot

        public SchemasetCustom getCustomRoot()
        Get customizations model root.
        Returns:
        customizations
      • loadCustomizations

        protected boolean loadCustomizations​(java.lang.String path)
                                      throws JiBXException,
                                             java.io.IOException
        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 CustomizationCommandLineBase
        Parameters:
        path - customization file path
        Returns:
        true if successful, false if an error
        Throws:
        JiBXException
        java.io.IOException
      • applyOverrides

        protected java.util.Map applyOverrides​(java.util.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