DTDExtensionBindingChecker and ExtensionBindingChecker.
| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | allowExtensions
If false, any use of extensions is reported as an error. |
| protected final Set | enabledExtensions
Set of namespace URIs that designates enabled extensions. |
| private Locator | |
| protected final NamespaceSupport | nsSupport
Remembers in-scope namespace bindings. |
| private final Options | |
| private final Set | |
| protected final String | schemaLanguage
Namespace URI of the target schema language. |
| Access | Constructor and Description |
|---|---|
| public | AbstractExtensionBindingChecker(String schemaLanguage, Options options, ErrorHandler
This error handler will receive detected errors. handler)
|
| Modifier and Type | Method and Description |
|---|---|
| protected final void | checkAndEnable(String uri)
Verify that the given URI is indeed a valid extension namespace URI, and if so enable it. |
| public void | endPrefixMapping(String prefix)
Overrides org. Implements org. Filter an end Namespace prefix mapping event. |
| protected final SAXParseException | |
| protected final boolean | isRecognizableExtension(String namespaceUri)
Checks if the given namespace URI can be potentially recognized by this XJC. |
| protected final boolean | isSupportedExtension(String namespaceUri)
Checks if the given namespace URI is supported as the extension bindings. |
| public void | setDocumentLocator(Locator locator)
Overrides org. Implements org. Filter a new document locator event. |
| public void | startDocument()
Overrides com. Implements org. Filter a start document event. |
| public void | startPrefixMapping(String prefix, String uri)
Overrides org. Implements org. Filter a start Namespace prefix mapping event. |
| protected final void | verifyTagName(String namespaceURI, String localName, String qName)
If the tag name belongs to a plugin namespace-wise, check its local name to make sure it's correct. |
| protected final void |
| allowExtensions | back to summary |
|---|---|
| protected final boolean allowExtensions If false, any use of extensions is reported as an error. | |
| enabledExtensions | back to summary |
|---|---|
| protected final Set<String> enabledExtensions Set of namespace URIs that designates enabled extensions. | |
| locator | back to summary |
|---|---|
| private Locator locator | |
| nsSupport | back to summary |
|---|---|
| protected final NamespaceSupport nsSupport Remembers in-scope namespace bindings. | |
| options | back to summary |
|---|---|
| private final Options options | |
| recognizableExtensions | back to summary |
|---|---|
| private final Set<String> recognizableExtensions | |
| schemaLanguage | back to summary |
|---|---|
| protected final String schemaLanguage Namespace URI of the target schema language. Elements in this namespace are always allowed. | |
| AbstractExtensionBindingChecker | back to summary |
|---|---|
public AbstractExtensionBindingChecker(String schemaLanguage, Options options, ErrorHandler handler)
| |
| checkAndEnable | back to summary |
|---|---|
| protected final void checkAndEnable(String uri) throws SAXException Verify that the given URI is indeed a valid extension namespace URI, and if so enable it. This method does all the error handling. | |
| endPrefixMapping | back to summary |
|---|---|
| public void endPrefixMapping(String prefix) throws SAXException Overrides org. Implements org. Doc from org. Filter an end Namespace prefix mapping event.
| |
| error | back to summary |
|---|---|
| protected final SAXParseException error(String msg) throws SAXException Reports an error and returns the created SAXParseException | |
| isRecognizableExtension | back to summary |
|---|---|
| protected final boolean isRecognizableExtension(String namespaceUri) Checks if the given namespace URI can be potentially recognized by this XJC. | |
| isSupportedExtension | back to summary |
|---|---|
| protected final boolean isSupportedExtension(String namespaceUri) Checks if the given namespace URI is supported as the extension bindings. | |
| setDocumentLocator | back to summary |
|---|---|
| public void setDocumentLocator(Locator locator) Overrides org. Implements org. Doc from org. Filter a new document locator event.
| |
| startDocument | back to summary |
|---|---|
| public void startDocument() throws SAXException Overrides com. Implements org. Doc from org. Filter a start document event.
| |
| startPrefixMapping | back to summary |
|---|---|
| public void startPrefixMapping(String prefix, String uri) throws SAXException Overrides org. Implements org. Doc from org. Filter a start Namespace prefix mapping event.
| |
| verifyTagName | back to summary |
|---|---|
| protected final void verifyTagName(String namespaceURI, String localName, String qName) throws SAXException If the tag name belongs to a plugin namespace-wise, check its local name to make sure it's correct. | |
| warning | back to summary |
|---|---|
| protected final void warning(String msg) throws SAXException Reports a warning. | |