01: package JSci.mathml;
02:
03: import org.w3c.dom.mathml.*;
04:
05: /**
06: * Implements a MathML fraction element.
07: * @version 1.0
08: * @author Mark Hale
09: */
10: public class MathMLFractionElementImpl extends MathMLElementImpl
11: implements MathMLFractionElement {
12: /**
13: * Constructs a MathML fraction element.
14: */
15: public MathMLFractionElementImpl(MathMLDocumentImpl owner,
16: String qualifiedName) {
17: super (owner, qualifiedName);
18: }
19:
20: public String getLinethickness() {
21: return getAttribute("linethickness");
22: }
23:
24: public void setLinethickness(String linethickness) {
25: setAttribute("linethickness", linethickness);
26: }
27:
28: public MathMLElement getNumerator() {
29: return (MathMLElement) getFirstChild();
30: }
31:
32: public void setNumerator(MathMLElement numerator) {
33: replaceChild(numerator, getFirstChild());
34: }
35:
36: public MathMLElement getDenominator() {
37: return (MathMLElement) item(1);
38: }
39:
40: public void setDenominator(MathMLElement denominator) {
41: replaceChild(denominator, item(1));
42: }
43: }
|