fi.iki.hsivonen.xml.checker
Class DebugChecker

java.lang.Object
  extended by fi.iki.hsivonen.xml.checker.Checker
      extended by fi.iki.hsivonen.xml.checker.DebugChecker
All Implemented Interfaces:
ContentHandler

public final class DebugChecker
extends Checker

Dumps the parse events as warnings.

Version:
$Id: DebugChecker.java,v 1.4 2006/12/01 12:34:31 hsivonen Exp $
Author:
hsivonen

Constructor Summary
DebugChecker()
          Contructor.
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
          Calls reset().
 void endElement(String uri, String localName, String qName)
           
 void endPrefixMapping(String prefix)
           
 void processingInstruction(String target, String data)
           
 void skippedEntity(String name)
           
 void startDocument()
          Calls reset().
 void startElement(String uri, String localName, String qName, Attributes atts)
           
 void startPrefixMapping(String prefix, String uri)
           
 
Methods inherited from class fi.iki.hsivonen.xml.checker.Checker
err, getDocumentLocator, getErrorHandler, ignorableWhitespace, reset, setDocumentLocator, setErrorHandler, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugChecker

public DebugChecker()
Contructor.

Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class Checker
Throws:
SAXException
See Also:
Checker.characters(char[], int, int)

endDocument

public void endDocument()
                 throws SAXException
Description copied from class: Checker
Calls reset().

Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class Checker
Throws:
SAXException
See Also:
Checker.endDocument()

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class Checker
Throws:
SAXException
See Also:
Checker.endElement(java.lang.String, java.lang.String, java.lang.String)

endPrefixMapping

public void endPrefixMapping(String prefix)
                      throws SAXException
Specified by:
endPrefixMapping in interface ContentHandler
Overrides:
endPrefixMapping in class Checker
Throws:
SAXException
See Also:
Checker.endPrefixMapping(java.lang.String)

processingInstruction

public void processingInstruction(String target,
                                  String data)
                           throws SAXException
Specified by:
processingInstruction in interface ContentHandler
Overrides:
processingInstruction in class Checker
Throws:
SAXException
See Also:
Checker.processingInstruction(java.lang.String, java.lang.String)

skippedEntity

public void skippedEntity(String name)
                   throws SAXException
Specified by:
skippedEntity in interface ContentHandler
Overrides:
skippedEntity in class Checker
Throws:
SAXException
See Also:
Checker.skippedEntity(java.lang.String)

startDocument

public void startDocument()
                   throws SAXException
Description copied from class: Checker
Calls reset().

Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class Checker
Throws:
SAXException
See Also:
Checker.startDocument()

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class Checker
Throws:
SAXException
See Also:
Checker.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
                        throws SAXException
Specified by:
startPrefixMapping in interface ContentHandler
Overrides:
startPrefixMapping in class Checker
Throws:
SAXException
See Also:
Checker.startPrefixMapping(java.lang.String, java.lang.String)