public final class XMLNameOrIdHandler extends Object implements CommandHandler
\\xmlName and \\xmlId commands.
All this does is check that the argument is a proper XML Name or ID and then outputs it
as normal.| Constructor and Description |
|---|
XMLNameOrIdHandler(int checkType) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleCommand(DOMBuilder builder,
Element parentElement,
CommandToken token)
Called when a
CommandToken is being handled by the DOMBuilder. |
public static final int NAME
public static final int ID
public 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 errorCopyright © 2008–2026 The University of Edinburgh. All rights reserved.