org.virtualmock.configuration
Class ExcludedClassesParser

java.lang.Object
  extended byorg.virtualmock.configuration.ExcludedClassesParser

public class ExcludedClassesParser
extends java.lang.Object

Parses ExcludedClasses out of the VirtualMock config file.

Version:
$Revision: 1.1 $
Author:
Chad Woolley

Constructor Summary
ExcludedClassesParser(java.io.InputStream inputStream, ExcludedClassesHandler handler, javax.xml.parsers.SAXParserFactory factory)
          Creates a new ExcludedClassesParser object.
 
Method Summary
 java.util.List getClassExclusionPatterns()
          Returns a List representing the classExclusionPatterns defined in the configuration file.
protected  void parse()
          The parse method of this Parser.
protected  void performParse()
          Perform the actual parsing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcludedClassesParser

public ExcludedClassesParser(java.io.InputStream inputStream,
                             ExcludedClassesHandler handler,
                             javax.xml.parsers.SAXParserFactory factory)
Creates a new ExcludedClassesParser object.

Parameters:
inputStream - the InputStream which contains the virtualmock xml config file.
handler - the SAX Handler for this parser
Method Detail

getClassExclusionPatterns

public java.util.List getClassExclusionPatterns()
Returns a List representing the classExclusionPatterns defined in the configuration file.

Returns:
Returns a List representing the classExclusionPatterns defined in the configuration file.

parse

protected void parse()
The parse method of this Parser.

Throws:
java.lang.RuntimeException - if unable to obtain the input stream for file

performParse

protected void performParse()
                     throws javax.xml.parsers.FactoryConfigurationError,
                            javax.xml.parsers.ParserConfigurationException,
                            org.xml.sax.SAXException,
                            java.io.IOException
Perform the actual parsing.

Throws:
javax.xml.parsers.FactoryConfigurationError - parsing exception
javax.xml.parsers.ParserConfigurationException - parsing exception
org.xml.sax.SAXException - parsing exception
java.io.IOException - parsing exception


Copyright © 2003-2005 Virtual Mock. All Rights Reserved.