Class ClassCustomizationBase

    • Field Detail

      • BASE_USAGE_LINES

        private static final java.lang.String[] BASE_USAGE_LINES
        Ordered array of usage lines.
      • m_classPaths

        private java.util.List m_classPaths
        List of class paths.
      • m_sourcePaths

        private java.util.List m_sourcePaths
        List of source paths.
    • Constructor Detail

      • ClassCustomizationBase

        protected ClassCustomizationBase​(java.lang.String[] lines)
        Constructor.
        Parameters:
        lines -
    • Method Detail

      • splitItems

        protected static void splitItems​(java.lang.String text,
                                         java.util.List values)
        Split items from a comma-delimited list.
        Parameters:
        text - comma-delimited list
        values - target list of item values
      • checkParameter

        protected boolean checkParameter​(CustomizationCommandLineBase.ArgList alist)
        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 CustomizationCommandLineBase
        Parameters:
        alist - argument list
        Returns:
        true if parameter processed, false if unknown
      • finishParameters

        protected void finishParameters​(CustomizationCommandLineBase.ArgList alist)
        Finish processing of command line parameters. This adds the JVM classpath directories to the set of paths specified on the command line. Subclasses which override this method need to call this base class implementation as part of their processing.
        Overrides:
        finishParameters in class CustomizationCommandLineBase
        Parameters:
        alist -
      • verboseDetails

        protected void verboseDetails()
        Print any extension details. This method may be overridden by subclasses to print extension parameter values for verbose output, but the base class implementation should be called first.
        Overrides:
        verboseDetails in class CustomizationCommandLineBase
      • 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
      • loadCustomizations

        protected abstract void loadCustomizations​(java.lang.String path,
                                                   IClassLocator loc,
                                                   ValidationContext vctx)
                                            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.
        Parameters:
        path - customizations file path, null if none
        loc - class locator
        vctx - validation context
        Throws:
        JiBXException
        java.io.IOException