com.sun.tools.internal.xjc.reader.internalizer
class: DOMForestScanner.LocationResolver [javadoc |
source]
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
com.sun.tools.internal.xjc.reader.internalizer.DOMForestScanner$LocationResolver
All Implemented Interfaces:
Locator, ContentHandler, DTDHandler, ErrorHandler, XMLFilter, EntityResolver
Intercepts the invocation of the setDocumentLocator method
and passes itself as the locator.
If the client calls one of the methods on the Locator interface,
use the LocatorTable to resolve the source location.
| Methods from org.xml.sax.helpers.XMLFilterImpl: |
|---|
|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setDocumentLocator, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
| Method from com.sun.tools.internal.xjc.reader.internalizer.DOMForestScanner$LocationResolver Detail: |
public void endElement(String namespaceURI,
String localName,
String qName) throws SAXException {
inStart = false;
super.endElement(namespaceURI, localName, qName);
}
|
public int getColumnNumber() {
Locator l = findLocator();
if(l!=null) return l.getColumnNumber();
return -1;
}
|
public int getLineNumber() {
Locator l = findLocator();
if(l!=null) return l.getLineNumber();
return -1;
}
|
public String getPublicId() {
Locator l = findLocator();
if(l!=null) return l.getPublicId();
return null;
}
|
public String getSystemId() {
Locator l = findLocator();
if(l!=null) return l.getSystemId();
return null;
}
|
public void setDocumentLocator(Locator locator) {
// ignore one set by the parent.
super.setDocumentLocator(this);
}
|
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts) throws SAXException {
inStart = true;
super.startElement(namespaceURI, localName, qName, atts);
}
|