aQute.libg.sax.filters
Class ElementSelectionFilter

java.lang.Object
  extended by aQute.libg.sax.ContentFilterImpl
      extended by aQute.libg.sax.filters.ElementSelectionFilter
All Implemented Interfaces:
ContentFilter, ContentHandler
Direct Known Subclasses:
UniqueResourceFilter

public abstract class ElementSelectionFilter
extends ContentFilterImpl


Constructor Summary
ElementSelectionFilter()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 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)
           
 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
 

Constructor Detail

ElementSelectionFilter

public ElementSelectionFilter()
Method Detail

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 interface ContentHandler
Overrides:
startElement in class ContentFilterImpl
Throws:
SAXException

endElement

public final void endElement(String uri,
                             String localName,
                             String qName)
                      throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class ContentFilterImpl
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class ContentFilterImpl
Throws:
SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws SAXException
Specified by:
ignorableWhitespace in interface ContentHandler
Overrides:
ignorableWhitespace in class ContentFilterImpl
Throws:
SAXException


Copyright © 2012 aQute SARL. All Rights Reserved.