|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.XMLFilterImpl org.apache.maven.XPathLocationTracker
public class XPathLocationTracker
Constructs an XPath expression in the form: /root/child[3]/grandchild[2] ...
Constructor Summary | |
---|---|
XPathLocationTracker()
|
Method Summary | |
---|---|
void |
endDocument()
Overriding ContentHandler. |
void |
endElement(String uri,
String localName,
String qName)
Overriding ContentHandler. |
String |
getXPath()
Gets the XPath expression that points to the current location. |
void |
startDocument()
Overriding ContentHandler. |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
Overriding ContentHandler. |
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
---|
characters, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPathLocationTracker()
Method Detail |
---|
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class XMLFilterImpl
SAXException
- SAXExceptionpublic void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class XMLFilterImpl
SAXException
- SAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class XMLFilterImpl
uri
- urilocalName
- localNameqName
- qNameatts
- atts
SAXException
- SAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class XMLFilterImpl
uri
- urilocalName
- localNameqName
- qName
SAXException
- SAXExceptionpublic final String getXPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |