com.twicom.qdparser
Interface DocHandler

All Known Implementing Classes:
XMLReader

public interface DocHandler

Interface for callbacks for the XML parser.

Version:
$Id$
Author:
Kevin Twidle

Method Summary
 void endDocument()
          Called to indicate the end of the XML document being read
 void endElement(java.lang.String nameSpace, java.lang.String tag)
          Called to indicate the end of a tagged element
 void startDocument()
          Called to indicate the start of the XML document being read
 void startElement(java.lang.String nameSpace, java.lang.String tag, java.util.Map<java.lang.String,java.lang.String> attributes, int line, int col)
          Called to indicate the start of a tagged element
 void text(java.lang.String str, boolean cdata, int line, int col)
          Called to indicate that an untagged element has been read
 void text(java.lang.String str, int line, int col)
          Called to indicate that an untagged element has been read
 

Method Detail

startElement

void startElement(java.lang.String nameSpace,
                  java.lang.String tag,
                  java.util.Map<java.lang.String,java.lang.String> attributes,
                  int line,
                  int col)
                  throws XMLParseException
Called to indicate the start of a tagged element

Parameters:
nameSpace - the namespace part of the tag
tag - the name part of the tag
attributes - the table of attributes for this element
line - the line number where this element was started
col - the column number where this element was started
Throws:
XMLParseException - if a semantic error is observed

endElement

void endElement(java.lang.String nameSpace,
                java.lang.String tag)
                throws XMLParseException
Called to indicate the end of a tagged element

Parameters:
nameSpace - the namespace part of the tag
tag - the name part of the tag
Throws:
XMLParseException - if a semantic error is observed

startDocument

void startDocument()
                   throws XMLParseException
Called to indicate the start of the XML document being read

Throws:
XMLParseException - if a semantic error is observed

endDocument

void endDocument()
                 throws XMLParseException
Called to indicate the end of the XML document being read

Throws:
XMLParseException - if a semantic error is observed

text

void text(java.lang.String str,
          int line,
          int col)
          throws XMLParseException
Called to indicate that an untagged element has been read

Parameters:
str - the value of the untagged element
line - the line number where this element was started
col - the column number where this element was started
Throws:
XMLParseException - if a semantic error is observed

text

void text(java.lang.String str,
          boolean cdata,
          int line,
          int col)
          throws XMLParseException
Called to indicate that an untagged element has been read

Parameters:
str - the value of the untagged element
cdata - true if the element was a CDATA element
line - the line number where this element was started
col - the column number where this element was started
Throws:
XMLParseException - if a semantic error is observed