public abstract class DOMHook extends ExtensionHook
getRootElementName() method and return an ElementName for
the root element. This should match the ElementName this hook is
registered for.
After extension hooks have been processed, call the getRootElement()
method to get a DOM Element.
ExtensionHook.URIResourceElementVisitor.ResourceBundleProviderATTRIBUTE_RSBUNDLE_CLASS, KEY_EXTENSION, KEY_RSBUNDLE_CLASS, MANIFEST_XMLNSKEY_LOCATOR| Constructor and Description |
|---|
DOMHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
end(ElementEndContext context)
Visit the end tag of an xml element.
|
org.w3c.dom.Element |
getRootElement()
Returns the root element of the DOM tree built using this hook.
|
protected abstract ElementName |
getRootElementName()
Gets the root element name to use.
|
void |
start(ElementStartContext context)
Visit the start tag of an xml element.
|
findPath, getExtension, getProvider, getRSBundleClass, getSchemaLocation, resolvePath, setProvider, setSchemaLocationgetAttributeHelper, getClassLoader, getMetaClassLoader, getResourceBundle, getResourceBundleProvider, getTextHelper, log, log, setResourceBundleProviderpublic org.w3c.dom.Element getRootElement()
public void start(ElementStartContext context)
ElementVisitorThis implementation does nothing.
start in class ElementVisitorcontext - information about the xml start tag.public void end(ElementEndContext context)
ElementVisitorThis implementation does nothing.
end in class ElementVisitorcontext - information about the xml end tag.protected abstract ElementName getRootElementName()