nu.validator.messages
Class XmlSourceHandler

java.lang.Object
  extended by nu.validator.messages.XmlSourceHandler
All Implemented Interfaces:
SourceHandler

public class XmlSourceHandler
extends Object
implements SourceHandler


Field Summary
private  AttributesImpl attrs
           
private  XmlSaxEmitter emitter
           
private static char[] NEWLINE
           
 
Constructor Summary
XmlSourceHandler(XmlSaxEmitter emitter)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endCharHilite()
           
 void endRange()
           
 void endSource()
           
 void newLine()
           
 void setLineErrors(SortedSet<Integer> oneBasedLineErrors)
           
 void startCharHilite(int oneBasedLine, int oneBasedColumn)
           
 void startRange(int oneBasedLine, int oneBasedColumn)
           
 void startSource(String type, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attrs

private final AttributesImpl attrs

NEWLINE

private static final char[] NEWLINE

emitter

private final XmlSaxEmitter emitter
Constructor Detail

XmlSourceHandler

public XmlSourceHandler(XmlSaxEmitter emitter)
Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface SourceHandler
Throws:
SAXException

endCharHilite

public void endCharHilite()
                   throws SAXException
Specified by:
endCharHilite in interface SourceHandler
Throws:
SAXException

endRange

public void endRange()
              throws SAXException
Specified by:
endRange in interface SourceHandler
Throws:
SAXException

endSource

public void endSource()
               throws SAXException
Specified by:
endSource in interface SourceHandler
Throws:
SAXException

newLine

public void newLine()
             throws SAXException
Specified by:
newLine in interface SourceHandler
Throws:
SAXException

startCharHilite

public void startCharHilite(int oneBasedLine,
                            int oneBasedColumn)
                     throws SAXException
Specified by:
startCharHilite in interface SourceHandler
Throws:
SAXException

startRange

public void startRange(int oneBasedLine,
                       int oneBasedColumn)
                throws SAXException
Specified by:
startRange in interface SourceHandler
Throws:
SAXException

startSource

public void startSource(String type,
                        String encoding)
                 throws SAXException
Specified by:
startSource in interface SourceHandler
Throws:
SAXException

setLineErrors

public void setLineErrors(SortedSet<Integer> oneBasedLineErrors)
                   throws SAXException
Specified by:
setLineErrors in interface SourceHandler
Throws:
SAXException