com.sun.tools.xjc.reader.dtd.bindinfo
Class DTDExtensionBindingChecker

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by com.sun.tools.xjc.util.SubtreeCutter
          extended by com.sun.tools.xjc.reader.AbstractExtensionBindingChecker
              extended by com.sun.tools.xjc.reader.dtd.bindinfo.DTDExtensionBindingChecker
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

final class DTDExtensionBindingChecker
extends AbstractExtensionBindingChecker

XMLFilter that checks the use of extension namespace URIs (to see if they have corresponding plugins), and otherwise report an error.

This code also masks the recognized extensions from the validator that will be plugged as the next component to this.


Field Summary
 
Fields inherited from class com.sun.tools.xjc.reader.AbstractExtensionBindingChecker
allowExtensions, enabledExtensions, nsSupport, schemaLanguage
 
Constructor Summary
DTDExtensionBindingChecker(String schemaLanguage, Options options, ErrorHandler handler)
           
 
Method Summary
 void startElement(String uri, String localName, String qName, Attributes atts)
           
 
Methods inherited from class com.sun.tools.xjc.reader.AbstractExtensionBindingChecker
checkAndEnable, endPrefixMapping, error, isRecognizableExtension, isSupportedExtension, setDocumentLocator, startDocument, startPrefixMapping, verifyTagName, warning
 
Methods inherited from class com.sun.tools.xjc.util.SubtreeCutter
endElement, isCutting, setContentHandler, startCutting
 
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
 

Constructor Detail

DTDExtensionBindingChecker

public DTDExtensionBindingChecker(String schemaLanguage,
                                  Options options,
                                  ErrorHandler handler)
Method Detail

startElement

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