public abstract class AbstractCustomXMLElementHandler extends Object implements EnvironmentHandler, CommandHandler
| Constructor and Description |
|---|
AbstractCustomXMLElementHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildCustomElement(DOMBuilder builder,
Element parentElement,
ArgumentContainerToken attrsToken,
ArgumentContainerToken namespaceToken,
ArgumentContainerToken qNameToken,
ArgumentContainerToken contentToken) |
void |
handleCommand(DOMBuilder builder,
Element parentElement,
CommandToken token)
Called when a
CommandToken is being handled by the DOMBuilder. |
void |
handleEnvironment(DOMBuilder builder,
Element parentElement,
EnvironmentToken token)
Called when a
CommandToken is being handled by the DOMBuilder. |
protected abstract boolean |
isBlock()
Subclasses should fill in to return true if they are building a block element or
false if they are building an inline element.
|
protected abstract boolean isBlock()
public void handleEnvironment(DOMBuilder builder, Element parentElement, EnvironmentToken token) throws SnuggleParseException
EnvironmentHandlerCommandToken is being handled by the DOMBuilder.handleEnvironment in interface EnvironmentHandlerbuilder - DOMBuilder running this process, which provides access
to convenience method for appending Nodes to the DOMparentElement - parent Element that the resulting Nodes should (can) be
added totoken - Token representing the environment being processed.SnuggleParseExceptionpublic void handleCommand(DOMBuilder builder, Element parentElement, CommandToken token) throws SnuggleParseException
CommandHandlerCommandToken is being handled by the DOMBuilder.handleCommand in interface CommandHandlerbuilder - DOMBuilder running this process, which provides access
to convenience method for appending Nodes to the DOMparentElement - parent Element that the resulting Nodes should (can) be
added totoken - Token representing the command being processed.SnuggleParseException - to indicate a client errorprotected void buildCustomElement(DOMBuilder builder, Element parentElement, ArgumentContainerToken attrsToken, ArgumentContainerToken namespaceToken, ArgumentContainerToken qNameToken, ArgumentContainerToken contentToken) throws SnuggleParseException
SnuggleParseExceptionCopyright © 2008–2026 The University of Edinburgh. All rights reserved.