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 TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) final voidendElement(String uri, String localName, String qName) voidignorableWhitespace(char[] ch, int start, int length) protected abstract booleanselect(int depth, String uri, String localName, String qName, Attributes attribs) final voidstartElement(String uri, String localName, String qName, Attributes atts) Methods inherited from class aQute.libg.sax.ContentFilterImpl
endDocument, endPrefixMapping, getParent, processingInstruction, setDocumentLocator, setParent, skippedEntity, startDocument, startPrefixMappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startElementin interfaceContentHandler- Overrides:
startElementin classContentFilterImpl- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classContentFilterImpl- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classContentFilterImpl- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classContentFilterImpl- Throws:
SAXException
-