fi.iki.hsivonen.xml
Class IdContentPassFilter

java.lang.Object
  extended by gnu.xml.pipeline.EventFilter
      extended by fi.iki.hsivonen.xml.IdContentPassFilter
All Implemented Interfaces:
gnu.xml.pipeline.EventConsumer, ContentHandler, DTDHandler, DeclHandler, LexicalHandler

public class IdContentPassFilter
extends gnu.xml.pipeline.EventFilter


Field Summary
private  int depth
           
private  String id
           
 
Fields inherited from class gnu.xml.pipeline.EventFilter
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI
 
Constructor Summary
IdContentPassFilter(gnu.xml.pipeline.EventConsumer next, String id)
           
 
Method Summary
 void characters(char[] arg0, int arg1, int arg2)
           
 void endElement(String arg0, String arg1, String arg2)
           
 void ignorableWhitespace(char[] arg0, int arg1, int arg2)
           
 void processingInstruction(String arg0, String arg1)
           
 void startDocument()
           
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 
Methods inherited from class gnu.xml.pipeline.EventFilter
attributeDecl, bind, chainTo, comment, elementDecl, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, externalEntityDecl, getContentHandler, getDocumentLocator, getDTDHandler, getErrorHandler, getNext, getProperty, internalEntityDecl, notationDecl, setContentHandler, setDocumentLocator, setDTDHandler, setErrorHandler, setProperty, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

depth

private int depth

id

private String id
Constructor Detail

IdContentPassFilter

public IdContentPassFilter(gnu.xml.pipeline.EventConsumer next,
                           String id)
Method Detail

characters

public void characters(char[] arg0,
                       int arg1,
                       int arg2)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.characters(char[], int, int)

endElement

public void endElement(String arg0,
                       String arg1,
                       String arg2)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.endElement(java.lang.String, java.lang.String, java.lang.String)

ignorableWhitespace

public void ignorableWhitespace(char[] arg0,
                                int arg1,
                                int arg2)
                         throws SAXException
Specified by:
ignorableWhitespace in interface ContentHandler
Overrides:
ignorableWhitespace in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.ignorableWhitespace(char[], int, int)

processingInstruction

public void processingInstruction(String arg0,
                                  String arg1)
                           throws SAXException
Specified by:
processingInstruction in interface ContentHandler
Overrides:
processingInstruction in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.processingInstruction(java.lang.String, java.lang.String)

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.startDocument()

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
EventFilter.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)