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.URIResource
ElementVisitor.ResourceBundleProvider
ATTRIBUTE_RSBUNDLE_CLASS, KEY_EXTENSION, KEY_RSBUNDLE_CLASS, MANIFEST_XMLNS
KEY_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, setSchemaLocation
getAttributeHelper, getClassLoader, getMetaClassLoader, getResourceBundle, getResourceBundleProvider, getTextHelper, log, log, setResourceBundleProvider
public org.w3c.dom.Element getRootElement()
public void start(ElementStartContext context)
ElementVisitor
This implementation does nothing.
start
in class ElementVisitor
context
- information about the xml start tag.public void end(ElementEndContext context)
ElementVisitor
This implementation does nothing.
end
in class ElementVisitor
context
- information about the xml end tag.protected abstract ElementName getRootElementName()