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

public final Class UnwrappedParallelMathMLDOM

extends Object
Class Inheritance
Imports
org.w3c.dom.Element, .NodeList, java.util.HashMap, .Map

Trivial wrapper Object that encapsulates the results of MathMLUtilities#unwrapParallelMathMLDOM(Element).
Author
David McKain
Version
$Revision$

Field Summary

Modifier and TypeField and Description
private Element
firstBranch

First branch of the <semantics/> element

private Element
mathElement

Containing <math/> element

private final Map<String, String>
textAnnotations

Map of all <annotation/> contents, keyed on encoding attribute

private final Map<String, NodeList>
xmlAnnotations

Map of all <annotation-xml/> contents, keyed on encoding attribute

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Element
getFirstBranch()

Returns the first branch of the top <semantics/> element.

public Element
getMathElement()

Returns the containing <math/> element

public Map<String, String>
getTextAnnotations()

Returns a Map of <annotation/> elements, keyed on the "encoding" attribute with the text content as values.

public Map<String, NodeList>
getXmlAnnotations()

Returns a Map of <annotation-xml/> elements, keyed on the "encoding" attribute with the NodeList content as values.

public void
setFirstBranch(Element firstBranch)

Sets the first branch of the top <semantics/> element.

public void
setMathElement(Element mathElement)

Sets the containing <math/> element

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

firstBranchback to summary
private Element firstBranch

First branch of the <semantics/> element

mathElementback to summary
private Element mathElement

Containing <math/> element

textAnnotationsback to summary
private final Map<String, String> textAnnotations

Map of all <annotation/> contents, keyed on encoding attribute

xmlAnnotationsback to summary
private final Map<String, NodeList> xmlAnnotations

Map of all <annotation-xml/> contents, keyed on encoding attribute

Constructor Detail

UnwrappedParallelMathMLDOMback to summary
public UnwrappedParallelMathMLDOM()

Method Detail

getFirstBranchback to summary
public Element getFirstBranch()

Returns the first branch of the top <semantics/> element.

getMathElementback to summary
public Element getMathElement()

Returns the containing <math/> element

getTextAnnotationsback to summary
public Map<String, String> getTextAnnotations()

Returns a Map of <annotation/> elements, keyed on the "encoding" attribute with the text content as values.

getXmlAnnotationsback to summary
public Map<String, NodeList> getXmlAnnotations()

Returns a Map of <annotation-xml/> elements, keyed on the "encoding" attribute with the NodeList content as values.

setFirstBranchback to summary
public void setFirstBranch(Element firstBranch)

Sets the first branch of the top <semantics/> element.

setMathElementback to summary
public void setMathElement(Element mathElement)

Sets the containing <math/> element