edu.uky.rch.ept.xmlSegmentTree
Class DefaultXMLParseHandler

java.lang.Object
  extended byedu.uky.rch.ept.xmlSegmentTree.DefaultXMLParseHandler
All Implemented Interfaces:
XMLParseHandler

public class DefaultXMLParseHandler
extends Object
implements XMLParseHandler

Default implementation of XMLParseHandler, with empty actions. The default error handler ignores all errors and asks that exceptions not be thrown.


Constructor Summary
DefaultXMLParseHandler()
           
 
Method Summary
 void character(char ch)
          Callback indicating a character of #PCDATA.
 void endDocument()
          Callback indicating the end of the document.
 void endElement(String name)
          Callback indicating an closing tag.
 void startDocument()
          Callback indicating the beginning of the document.
 void startElement(String name, Map attrs)
          Callback indicating an opening tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultXMLParseHandler

public DefaultXMLParseHandler()
Method Detail

startDocument

public void startDocument()
                   throws XMLParseException
Description copied from interface: XMLParseHandler
Callback indicating the beginning of the document.

Specified by:
startDocument in interface XMLParseHandler
Throws:
XMLParseException - to stop the parse. The exception is not caught by XMLParser.parse(java.lang.CharSequence).

endDocument

public void endDocument()
                 throws XMLParseException
Description copied from interface: XMLParseHandler
Callback indicating the end of the document.

Specified by:
endDocument in interface XMLParseHandler
Throws:
XMLParseException - to stop the parse. The exception is not caught by XMLParser.parse(java.lang.CharSequence).

startElement

public void startElement(String name,
                         Map attrs)
                  throws XMLParseException
Description copied from interface: XMLParseHandler
Callback indicating an opening tag.

Specified by:
startElement in interface XMLParseHandler
Parameters:
name - the name of the tag.
attrs - a map representing the attributes and values of the tag.
Throws:
XMLParseException - to stop the parse. The exception is not caught by XMLParser.parse(java.lang.CharSequence).

endElement

public void endElement(String name)
                throws XMLParseException
Description copied from interface: XMLParseHandler
Callback indicating an closing tag.

Specified by:
endElement in interface XMLParseHandler
Parameters:
name - the name of the tag.
Throws:
XMLParseException - to stop the parse. The exception is not caught by XMLParser.parse(java.lang.CharSequence).

character

public void character(char ch)
               throws XMLParseException
Description copied from interface: XMLParseHandler
Callback indicating a character of #PCDATA.

Specified by:
character in interface XMLParseHandler
Parameters:
ch - the character.
Throws:
XMLParseException - to stop the parse. The exception is not caught by XMLParser.parse(java.lang.CharSequence).