org.virtualmock.rule
Class RuleParser

java.lang.Object
  extended byorg.virtualmock.rule.RuleParser

public class RuleParser
extends java.lang.Object

Parses VirtualMock configuration file.

Version:
$Revision: 1.13 $
Author:
Property Systems Development

Field Summary
static java.lang.String RULES_CONFIG_PATH
          constant for rules filename.
 
Constructor Summary
RuleParser()
           
 
Method Summary
 java.util.Map getRuleEnforcementLevels()
          Get a Map of ruleEnforcementLevels.
protected  void parse()
          The parse method of this Parser.
protected  void performParse(java.io.InputStream inputStream)
          Perform the actual parsing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RULES_CONFIG_PATH

public static final java.lang.String RULES_CONFIG_PATH
constant for rules filename.

See Also:
Constant Field Values
Constructor Detail

RuleParser

public RuleParser()
Method Detail

getRuleEnforcementLevels

public java.util.Map getRuleEnforcementLevels()
Get a Map of ruleEnforcementLevels.

Returns:
a Map of ruleEnforcementLevels

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(java.io.InputStream inputStream)
                     throws javax.xml.parsers.FactoryConfigurationError,
                            javax.xml.parsers.ParserConfigurationException,
                            org.xml.sax.SAXException,
                            java.io.IOException
Perform the actual parsing.

Parameters:
inputStream - the input stream
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.