com.partnersoft.formats.xml
Class XmlDoNothingActor

java.lang.Object
  extended by com.partnersoft.formats.xml.XmlDoNothingActor
All Implemented Interfaces:
XmlActor

public class XmlDoNothingActor
extends java.lang.Object
implements XmlActor

Do-nothing stub implementation of XmlActor. Mostly useful for testing and validation.

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
XmlDoNothingActor()
           
 
Method Summary
 void endElement(java.lang.String name, java.lang.String characterData)
          Called when a closing tag is encounterd, ending an element.
 void startElement(java.lang.String name, org.xml.sax.Attributes attributes)
          Called when an opening tag is encountered, starting an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDoNothingActor

public XmlDoNothingActor()
Method Detail

endElement

public void endElement(java.lang.String name,
                       java.lang.String characterData)
                throws java.lang.Exception
Description copied from interface: XmlActor
Called when a closing tag is encounterd, ending an element. The qName of the tag and a String containing any character data enclosed are supplied.

Specified by:
endElement in interface XmlActor
Parameters:
name - qName of element
characterData - any character data encountered
Throws:
java.lang.Exception - if anything bad happens (this stops the parsing)

startElement

public void startElement(java.lang.String name,
                         org.xml.sax.Attributes attributes)
                  throws java.lang.Exception
Description copied from interface: XmlActor
Called when an opening tag is encountered, starting an element. The qName of the tag and the associated attributes are supplied.

Specified by:
startElement in interface XmlActor
Parameters:
name - qName of element
attributes - attributes listed in the tag
Throws:
java.lang.Exception - if anything bad happens (this stops the parsing)