org.apache.cocoon.components.language.markup
Class Logicsheet.SaveNamespaceFilter

java.lang.Object
  |
  +--org.xml.sax.helpers.XMLFilterImpl
        |
        +--org.apache.cocoon.components.language.markup.Logicsheet.SaveNamespaceFilter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader
Enclosing class:
Logicsheet

protected class Logicsheet.SaveNamespaceFilter
extends org.xml.sax.helpers.XMLFilterImpl

This filter listen for source SAX events, and register the declared namespaces into a Map object.

See Also:
XMLFilter, ContentHandler

Constructor Summary
Logicsheet.SaveNamespaceFilter(java.util.Map originalNamepaceURIs)
          The contructor needs an initialized Map object where it can store the found namespace declarations.
 
Method Summary
 void setParent(org.xml.sax.XMLReader reader)
           
 void startDocument()
           
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logicsheet.SaveNamespaceFilter

public Logicsheet.SaveNamespaceFilter(java.util.Map originalNamepaceURIs)
The contructor needs an initialized Map object where it can store the found namespace declarations.
Parameters:
originalNamepaces - a initialized Map instance.
Method Detail

setParent

public void setParent(org.xml.sax.XMLReader reader)
Overrides:
setParent in class org.xml.sax.helpers.XMLFilterImpl

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Overrides:
startDocument in class org.xml.sax.helpers.XMLFilterImpl

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
                        throws org.xml.sax.SAXException
Overrides:
startPrefixMapping in class org.xml.sax.helpers.XMLFilterImpl

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Overrides:
startElement in class org.xml.sax.helpers.XMLFilterImpl


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.