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.
| Modifier and Type | Field and Description |
|---|---|
| private int | count
Number of the elements encountered. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method 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 | startDocument()
Overrides com. Implements org. Filter a start document event. |
| public void | startElement(String namespaceURI, String localName, String qName, Attributes atts)
Overrides com. Implements org. Filter a start element event. |
| count | back to summary |
|---|---|
| private int count Number of the elements encountered. Used to detect the root element. | |
| ExtensionBindingChecker | back to summary |
|---|---|
| public ExtensionBindingChecker(String schemaLanguage, Options options, ErrorHandler handler) | |
| needsToBePruned | back to summary |
|---|---|
| private boolean needsToBePruned(String uri) Returns true if the elements with the given namespace URI should be blocked by this filter. | |
| startDocument | back to summary |
|---|---|
| public void startDocument() throws SAXException Overrides com. Implements org. Doc from org. Filter a start document event.
| |
| startElement | back to summary |
|---|---|
| public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException Overrides com. Implements org. Doc from org. Filter a start element event.
| |