com.sun.tools.xjc.reader
Class ExtensionBindingChecker
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
com.sun.tools.xjc.reader.ExtensionBindingChecker
- 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
public final class ExtensionBindingChecker
- extends org.xml.sax.helpers.XMLFilterImpl
This filter checks jaxb:extensionBindingPrefix and
pass/filter extension bindings.
This filter also remembers enabled extension namespaces
and filters out any extension namespaces that doesn't belong
to those. The net effect is that disabled customizations
will never pass through this filter.
Note that we can't just filter out all foreign namespaces,
as we need to use user-defined tags in documentations to generate javadoc.
The class needs to know the list of extension binding namespaces
that the RI recognizes.
To add new URI, modify the isSupportedExtension method.
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
characters, endDocument, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtensionBindingChecker
public ExtensionBindingChecker(java.lang.String schemaLanguage,
Options options,
org.xml.sax.ErrorHandler handler)
- Parameters:
handler
- This error handler will receive detected errors.
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
- Overrides:
startDocument
in class org.xml.sax.helpers.XMLFilterImpl
- Throws:
org.xml.sax.SAXException
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
- Specified by:
startPrefixMapping
in interface org.xml.sax.ContentHandler
- Overrides:
startPrefixMapping
in class org.xml.sax.helpers.XMLFilterImpl
- Throws:
org.xml.sax.SAXException
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
- Specified by:
endPrefixMapping
in interface org.xml.sax.ContentHandler
- Overrides:
endPrefixMapping
in class org.xml.sax.helpers.XMLFilterImpl
- Throws:
org.xml.sax.SAXException
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
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.XMLFilterImpl
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.XMLFilterImpl
- Throws:
org.xml.sax.SAXException
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocator
in interface org.xml.sax.ContentHandler
- Overrides:
setDocumentLocator
in class org.xml.sax.helpers.XMLFilterImpl
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler handler)
- Specified by:
setContentHandler
in interface org.xml.sax.XMLReader
- Overrides:
setContentHandler
in class org.xml.sax.helpers.XMLFilterImpl