com.sun.tools.jxc

Class NGCCRuntimeEx

public final class NGCCRuntimeEx extends NGCCRuntime

Controls the validating and converting of values obtained from the config file.
Constructor Summary
NGCCRuntimeEx(ErrorHandler errorHandler)
Method Summary
FilegetBaseDir(String baseDir)
This will check if the baseDir provided by the user in the config file exists.
ListgetExcludePatterns(List excludeContent)
This takes the exclude list provided by the user in the config file It converts the user values to
List<Pattern>getIncludePatterns(List includeContent)
This takes the include list provided by the user in the config file It converts the user values to
protected voidunexpectedX(String token)

Constructor Detail

NGCCRuntimeEx

public NGCCRuntimeEx(ErrorHandler errorHandler)

Method Detail

getBaseDir

public File getBaseDir(String baseDir)
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

getExcludePatterns

public List getExcludePatterns(List 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

getIncludePatterns

public List<Pattern> getIncludePatterns(List 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

unexpectedX

protected void unexpectedX(String token)