Top Description Constructors Methods
uk.ac.ed.ph.snuggletex.dombuilding

public final Class XMLUnparseHandler

extends Object
implements EnvironmentHandler, CommandHandler
Class Inheritance
All Implemented Interfaces
uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler, uk.ac.ed.ph.snuggletex.dombuilding.EnvironmentHandler
Imports
uk.ac.ed.ph.snuggletex.SerializationSpecifier, uk.ac.ed.ph.snuggletex.internal.DOMBuilder, .SnuggleParseException, uk.ac.ed.ph.snuggletex.internal.util.XMLUtilities, uk.ac.ed.ph.snuggletex.tokens.ArgumentContainerToken, .CommandToken, .EnvironmentToken, uk.ac.ed.ph.snuggletex.utilities.SerializationOptions, org.w3c.dom.Element, .NodeList

Handles the special xmlUnparsed command and environment.

This has the effect of handling content as normal, before effectively putting the results inside a CDATA section. This is very useful for documenting how SnuggleTeX works, but may be useful for other purposes as well.

Author
David McKain
Version
$Revision$

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
handle(DOMBuilder builder, Element parentElement, final ArgumentContainerToken content, final boolean isBlock)

public void
handleCommand(DOMBuilder builder, Element parentElement, CommandToken token)

Implements uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Called when a CommandToken is being handled by the DOMBuilder.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

XMLUnparseHandlerback to summary
public XMLUnparseHandler()

Method Detail

handleback to summary
private void handle(DOMBuilder builder, Element parentElement, final ArgumentContainerToken content, final boolean isBlock) throws SnuggleParseException
handleCommandback to summary
public void handleCommand(DOMBuilder builder, Element parentElement, CommandToken token) throws SnuggleParseException

Implements uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Doc from uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Called when a CommandToken is being handled by the DOMBuilder.

Exceptions
SnuggleParseException:
to indicate a client error
handleEnvironmentback to summary
public void handleEnvironment(DOMBuilder builder, Element parentElement, EnvironmentToken token) throws SnuggleParseException

Implements uk.ac.ed.ph.snuggletex.dombuilding.EnvironmentHandler.handleEnvironment.

Doc from uk.ac.ed.ph.snuggletex.dombuilding.EnvironmentHandler.handleEnvironment.

Called when a CommandToken is being handled by the DOMBuilder.