Class NGCCRuntimeEx

  • All Implemented Interfaces:
    com.sun.tools.jxc.gen.config.NGCCEventSource, ContentHandler

    public final class NGCCRuntimeEx
    extends com.sun.tools.jxc.gen.config.NGCCRuntime
    Controls the validating and converting of values obtained from the config file.
    Author:
    Bhakti Mehta (bhakti.mehta@sun.com)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      File getBaseDir​(String baseDir)
      This will check if the baseDir provided by the user in the config file exists.
      List getExcludePatterns​(List<String> excludeContent)
      This takes the exclude list provided by the user in the config file It converts the user values to Pattern
      List<Pattern> getIncludePatterns​(List<String> includeContent)
      This takes the include list provided by the user in the config file It converts the user values to Pattern
      protected void unexpectedX​(String token)  
      • Methods inherited from class com.sun.tools.jxc.gen.config.NGCCRuntime

        characters, consumeAttribute, endDocument, endElement, endPrefixMapping, getAttributeIndex, getCurrentAttributes, getLocator, ignorableWhitespace, onEnterElementConsumed, onLeaveElementConsumed, processingInstruction, processList, redirectSubtree, replace, reset, resolveNamespacePrefix, sendEnterAttribute, sendEnterElement, sendLeaveAttribute, sendLeaveElement, sendText, setDocumentLocator, setRootHandler, skippedEntity, startDocument, startElement, startPrefixMapping, trace, traceln
    • Constructor Detail

      • NGCCRuntimeEx

        public NGCCRuntimeEx​(ErrorHandler errorHandler)
    • Method Detail

      • getBaseDir

        public File getBaseDir​(String baseDir)
                        throws SAXException
        This will check if the baseDir provided by the user in the config file exists. If not it throws an error
        Parameters:
        baseDir - The baseDir attribute passed by the user in the xml config file as a path
        Returns:
        The file representation of the path name
        Throws:
        SAXException
      • getIncludePatterns

        public List<Pattern> getIncludePatterns​(List<String> includeContent)
        This takes the include list provided by the user in the config file It converts the user values to Pattern
        Parameters:
        includeContent - The include list specified by the user
        Returns:
        A list of regular expression patterns Pattern
      • getExcludePatterns

        public List getExcludePatterns​(List<String> excludeContent)
        This takes the exclude list provided by the user in the config file It converts the user values to Pattern
        Parameters:
        excludeContent - The exclude list specified by the user
        Returns:
        A list of regular expression patterns Pattern
      • unexpectedX

        protected void unexpectedX​(String token)
                            throws SAXException
        Overrides:
        unexpectedX in class com.sun.tools.jxc.gen.config.NGCCRuntime
        Throws:
        SAXException