Package com.sun.tools.jxc
Class NGCCRuntimeEx
- java.lang.Object
-
- com.sun.tools.jxc.gen.config.NGCCRuntime
-
- com.sun.tools.jxc.NGCCRuntimeEx
-
- All Implemented Interfaces:
NGCCEventSource
,org.xml.sax.ContentHandler
public final class NGCCRuntimeEx extends NGCCRuntime
Controls the validating and converting of values obtained from the config file.- Author:
- Bhakti Mehta (bhakti.mehta@sun.com)
-
-
Constructor Summary
Constructors Constructor Description NGCCRuntimeEx(org.xml.sax.ErrorHandler errorHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getBaseDir(java.lang.String baseDir)
This will check if the baseDir provided by the user in the config file exists.java.util.List
getExcludePatterns(java.util.List<java.lang.String> excludeContent)
This takes the exclude list provided by the user in the config file It converts the user values toPattern
java.util.List<java.util.regex.Pattern>
getIncludePatterns(java.util.List<java.lang.String> includeContent)
This takes the include list provided by the user in the config file It converts the user values toPattern
protected void
unexpectedX(java.lang.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
-
-
-
-
Method Detail
-
getBaseDir
public java.io.File getBaseDir(java.lang.String baseDir) throws org.xml.sax.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:
org.xml.sax.SAXException
-
getIncludePatterns
public java.util.List<java.util.regex.Pattern> getIncludePatterns(java.util.List<java.lang.String> includeContent)
This takes the include list provided by the user in the config file It converts the user values toPattern
- Parameters:
includeContent
- The include list specified by the user- Returns:
- A list of regular expression patterns
Pattern
-
getExcludePatterns
public java.util.List getExcludePatterns(java.util.List<java.lang.String> excludeContent)
This takes the exclude list provided by the user in the config file It converts the user values toPattern
- Parameters:
excludeContent
- The exclude list specified by the user- Returns:
- A list of regular expression patterns
Pattern
-
unexpectedX
protected void unexpectedX(java.lang.String token) throws org.xml.sax.SAXException
- Overrides:
unexpectedX
in classNGCCRuntime
- Throws:
org.xml.sax.SAXException
-
-