Package aQute.libg.sax.filters
Class ElementSelectionFilter
java.lang.Object
aQute.libg.sax.ContentFilterImpl
aQute.libg.sax.filters.ElementSelectionFilter
- All Implemented Interfaces:
ContentFilter
,ContentHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) final void
endElement
(String uri, String localName, String qName) void
ignorableWhitespace
(char[] ch, int start, int length) protected abstract boolean
select
(int depth, String uri, String localName, String qName, Attributes attribs) final void
startElement
(String uri, String localName, String qName, Attributes atts) Methods inherited from class aQute.libg.sax.ContentFilterImpl
endDocument, endPrefixMapping, getParent, processingInstruction, setDocumentLocator, setParent, skippedEntity, startDocument, startPrefixMapping
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
depth
int depth
-
-
Constructor Details
-
ElementSelectionFilter
public ElementSelectionFilter()
-
-
Method Details
-
select
protected abstract boolean select(int depth, String uri, String localName, String qName, Attributes attribs) -
startElement
public final void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classContentFilterImpl
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classContentFilterImpl
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classContentFilterImpl
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classContentFilterImpl
- Throws:
SAXException
-