|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxe.equations.DOMMathBuilder
public class DOMMathBuilder
The builder for creating a MathElement tree
| Field Summary | |
|---|---|
private static org.apache.log4j.Logger |
LOG
Logger for this class |
private MathRootElement |
rootElement
|
| Constructor Summary | |
|---|---|
DOMMathBuilder(org.w3c.dom.Document document)
Constructs a builder |
|
| Method Summary | |
|---|---|
private java.lang.String |
getAttribute(org.w3c.dom.NamedNodeMap attributes,
java.lang.String attribute,
java.lang.String alt)
Help method to get the value of a attribute |
private boolean |
getBoolean(org.w3c.dom.NamedNodeMap attributes,
java.lang.String attribute,
java.lang.String alt)
Help method to get boolean value of a attribute |
private int |
getInteger(org.w3c.dom.NamedNodeMap attributes,
java.lang.String attribute,
java.lang.String alt)
Help method to get the integer value of a attribute |
MathRootElement |
getMathRootElement()
Return the root element of a math tree |
private void |
traverse(org.w3c.dom.Node node,
MathElement parent)
Creates a MathElement through traversing the DOM tree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.log4j.Logger LOG
private final MathRootElement rootElement
| Constructor Detail |
|---|
public DOMMathBuilder(org.w3c.dom.Document document)
document - The MathML document| Method Detail |
|---|
public MathRootElement getMathRootElement()
private java.lang.String getAttribute(org.w3c.dom.NamedNodeMap attributes,
java.lang.String attribute,
java.lang.String alt)
attributes - Attribute listattribute - Name of the attributealt - Alternative value
private int getInteger(org.w3c.dom.NamedNodeMap attributes,
java.lang.String attribute,
java.lang.String alt)
attributes - Attribute listattribute - Name of the attributealt - Alternative value
private boolean getBoolean(org.w3c.dom.NamedNodeMap attributes,
java.lang.String attribute,
java.lang.String alt)
attributes - Attribute listattribute - Name of the attributealt - Alternative value
private void traverse(org.w3c.dom.Node node,
MathElement parent)
node - Current element of the DOM treeparent - Current element of the MathElement tree
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||