org.virtualmock.rule
Class RuleHandler

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.virtualmock.rule.RuleHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class RuleHandler
extends org.xml.sax.helpers.DefaultHandler

DefaultHandler for VirtualMock Rules.

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

Constructor Summary
RuleHandler()
           
 
Method Summary
 void characters(char[] buffer, int offset, int len)
          Overridden SAX event.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
          Overridden SAX event.
 java.util.Map getRuleEnforcementLevels()
          Returns a Map representing the enforcement levels for all Rules defined in the configuration file.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleHandler

public RuleHandler()
Method Detail

getRuleEnforcementLevels

public java.util.Map getRuleEnforcementLevels()
Returns a Map representing the enforcement levels for all Rules defined in the configuration file. In the Map, the key is a String, and the enforcementLevel is an Integer.

Returns:
a Map representing the enforcement levels for all Rules defined in the configuration file

characters

public void characters(char[] buffer,
                       int offset,
                       int len)
                throws org.xml.sax.SAXException
Overridden SAX event.

Parameters:
buffer - the buffer
offset - the offset
len - the length
Throws:
org.xml.sax.SAXException - Any SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String name)
Overridden SAX event.

Parameters:
uri - the uri
localName - the local name
name - the name
Throws:
java.lang.RuntimeException - If invalid data is found


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