Top Description Fields Constructors Methods
uk.ac.ed.ph.snuggletex.upconversion

public final Class UpConvertingPostProcessor

extends Object
implements DOMPostProcessor
Class Inheritance
All Implemented Interfaces
uk.ac.ed.ph.snuggletex.DOMPostProcessor
Imports
uk.ac.ed.ph.snuggletex.DOMOutputOptions, .DOMPostProcessor, uk.ac.ed.ph.snuggletex.utilities.StylesheetManager, org.w3c.dom.Document

Implementation of DOMPostProcessor that bootstraps into MathMLUpConverter, providing the functionality offered by it.
Author
David McKain
Since
1.1.0
Version
$Revision$
See Also
MathMLUpConverter

Field Summary

Modifier and TypeField and Description
private UpConversionOptions

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public UpConversionOptions
public Document
postProcessDOM(Document workDocument, final DOMOutputOptions unused, StylesheetManager stylesheetManager)

Implements uk.ac.ed.ph.snuggletex.DOMPostProcessor.postProcessDOM.

Implement this to post-process the raw DOM produced by SnuggleTeX.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

upconversionOptionsback to summary
private UpConversionOptions upconversionOptions

Constructor Detail

UpConvertingPostProcessorback to summary
public UpConvertingPostProcessor()
UpConvertingPostProcessorback to summary
public UpConvertingPostProcessor(UpConversionOptions upconversionOptions)

Method Detail

getUpconversionOptionsback to summary
public UpConversionOptions getUpconversionOptions()
postProcessDOMback to summary
public Document postProcessDOM(Document workDocument, final DOMOutputOptions unused, StylesheetManager stylesheetManager)

Implements uk.ac.ed.ph.snuggletex.DOMPostProcessor.postProcessDOM.

Doc from uk.ac.ed.ph.snuggletex.DOMPostProcessor.postProcessDOM.

Implement this to post-process the raw DOM produced by SnuggleTeX.

You will be given an entire DOM Document to analyse, containing a root element called root in the SnuggleConstants#SNUGGLETEX_NAMESPACE namespace.

You should create a new Document and return it. The children of the root element will end up being the Nodes added to the final DOM.

You MUST NOT modify the workDocument that is passed to you.

setUpconversionOptionsback to summary
public void setUpconversionOptions(UpConversionOptions upconversionOptions)