Top Description Fields Constructors Methods
com.sun.tools.xjc.reader.dtd.bindinfo

pack-priv final Class DTDExtensionBindingChecker

extends AbstractExtensionBindingChecker
Class Inheritance
Imports
com.sun.tools.xjc.Options, com.sun.tools.xjc.reader.AbstractExtensionBindingChecker, .Const, org.xml.sax.Attributes, .ErrorHandler, .SAXException, .XMLFilter

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.

Author
Kohsuke Kawaguchi

Field Summary

Inherited from com.sun.tools.xjc.reader.AbstractExtensionBindingChecker:
allowExtensionsenabledExtensionsnsSupportschemaLanguage

Constructor Summary

AccessConstructor and Description
public
DTDExtensionBindingChecker(String schemaLanguage, Options options, ErrorHandler handler)

Method Summary

Modifier and TypeMethod and Description
private boolean
needsToBePruned(String uri)

Returns true if the elements with the given namespace URI should be blocked by this filter.

public void
startElement(String uri, String localName, String qName, Attributes atts)

Overrides com.sun.tools.xjc.util.SubtreeCutter.startElement.

Implements org.xml.sax.ContentHandler.startElement.

Filter a start element event.

Inherited from com.sun.tools.xjc.reader.AbstractExtensionBindingChecker:
checkAndEnableendPrefixMappingerrorisRecognizableExtensionisSupportedExtensionsetDocumentLocatorstartDocumentstartPrefixMappingverifyTagNamewarning

Constructor Detail

DTDExtensionBindingCheckerback to summary
public DTDExtensionBindingChecker(String schemaLanguage, Options options, ErrorHandler handler)

Method Detail

needsToBePrunedback to summary
private boolean needsToBePruned(String uri)

Returns true if the elements with the given namespace URI should be blocked by this filter.

startElementback to summary
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException

Overrides com.sun.tools.xjc.util.SubtreeCutter.startElement.

Implements org.xml.sax.ContentHandler.startElement.

Doc from org.xml.sax.helpers.XMLFilterImpl.startElement.

Filter a start element event.

Annotations
@Override
Exceptions
SAXException:
The client may throw an exception during processing.