com.thaiopensource.validate.schematron
Class SchemaReaderImpl.LocationFilter

java.lang.Object
  extended by com.thaiopensource.xml.sax.DelegatingContentHandler
      extended by com.thaiopensource.validate.schematron.SchemaReaderImpl.LocationFilter
All Implemented Interfaces:
ContentHandler, Locator
Enclosing class:
SchemaReaderImpl

static class SchemaReaderImpl.LocationFilter
extends DelegatingContentHandler
implements Locator


Field Summary
private  SAXException exception
           
private  int lineNumber
           
private  String systemId
           
 
Constructor Summary
SchemaReaderImpl.LocationFilter(ContentHandler delegate, String systemId)
           
 
Method Summary
 int getColumnNumber()
           
(package private)  SAXException getException()
           
 int getLineNumber()
           
 String getPublicId()
           
 String getSystemId()
           
 void setDocumentLocator(Locator locator)
           
 void startDocument()
           
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 
Methods inherited from class com.thaiopensource.xml.sax.DelegatingContentHandler
characters, endDocument, endElement, endPrefixMapping, getDelegate, ignorableWhitespace, processingInstruction, setDelegate, skippedEntity, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

systemId

private final String systemId

lineNumber

private int lineNumber

exception

private SAXException exception
Constructor Detail

SchemaReaderImpl.LocationFilter

SchemaReaderImpl.LocationFilter(ContentHandler delegate,
                                String systemId)
Method Detail

getException

SAXException getException()

setDocumentLocator

public void setDocumentLocator(Locator locator)
Specified by:
setDocumentLocator in interface ContentHandler
Overrides:
setDocumentLocator in class DelegatingContentHandler

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class DelegatingContentHandler
Throws:
SAXException

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DelegatingContentHandler
Throws:
SAXException

getPublicId

public String getPublicId()
Specified by:
getPublicId in interface Locator

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface Locator

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface Locator

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface Locator