edu.uky.rch.ept.xmlSegmentTree.parse
Interface XMLParseHandler

All Known Implementing Classes:
DefaultXMLParseHandler

public interface XMLParseHandler

Interface for listening to an XML parse. Called by XMLParser.parse(java.lang.CharSequence). This is a streaming API a la JAX, but much more simplistic.


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.
 

Method Detail

startDocument

public void startDocument()
                   throws XMLParseException
Callback indicating the beginning of the document.

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

endDocument

public void endDocument()
                 throws XMLParseException
Callback indicating the end of the document.

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
Callback indicating an opening tag.

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
Callback indicating an closing tag.

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
Callback indicating a character of #PCDATA.

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