com.sun.tools.xjc.reader.internalizer
Class ContentHandlerNamespacePrefixAdapter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by com.sun.tools.xjc.reader.internalizer.ContentHandlerNamespacePrefixAdapter
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

final class ContentHandlerNamespacePrefixAdapter
extends XMLFilterImpl

XMLReader filter for supporting http://xml.org/sax/features/namespace-prefixes feature.


Constructor Summary
ContentHandlerNamespacePrefixAdapter()
           
ContentHandlerNamespacePrefixAdapter(XMLReader parent)
           
 
Method Summary
 boolean getFeature(String name)
           
 void setFeature(String name, boolean value)
           
 void startElement(String uri, String localName, String qName, Attributes atts)
           
 void startPrefixMapping(String prefix, String uri)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setParent, setProperty, skippedEntity, startDocument, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentHandlerNamespacePrefixAdapter

public ContentHandlerNamespacePrefixAdapter()

ContentHandlerNamespacePrefixAdapter

public ContentHandlerNamespacePrefixAdapter(XMLReader parent)
Method Detail

getFeature

public boolean getFeature(String name)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException
Specified by:
getFeature in interface XMLReader
Overrides:
getFeature in class XMLFilterImpl
Throws:
SAXNotRecognizedException
SAXNotSupportedException

setFeature

public void setFeature(String name,
                       boolean value)
                throws SAXNotRecognizedException,
                       SAXNotSupportedException
Specified by:
setFeature in interface XMLReader
Overrides:
setFeature in class XMLFilterImpl
Throws:
SAXNotRecognizedException
SAXNotSupportedException

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
                        throws SAXException
Specified by:
startPrefixMapping in interface ContentHandler
Overrides:
startPrefixMapping in class XMLFilterImpl
Throws:
SAXException

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class XMLFilterImpl
Throws:
SAXException