1 package JSci.mathml; 2 3 import org.w3c.dom.mathml.*; 4 5 10 public class MathMLFractionElementImpl extends MathMLElementImpl implements MathMLFractionElement { 11 14 public MathMLFractionElementImpl(MathMLDocumentImpl owner, String qualifiedName) { 15 super(owner, qualifiedName); 16 } 17 18 public String getLinethickness() { 19 return getAttribute("linethickness"); 20 } 21 public void setLinethickness(String linethickness) { 22 setAttribute("linethickness", linethickness); 23 } 24 25 public MathMLElement getNumerator() { 26 return (MathMLElement) getFirstChild(); 27 } 28 public void setNumerator(MathMLElement numerator) { 29 replaceChild(numerator, getFirstChild()); 30 } 31 32 public MathMLElement getDenominator() { 33 return (MathMLElement) item(1); 34 } 35 public void setDenominator(MathMLElement denominator) { 36 replaceChild(denominator, item(1)); 37 } 38 } 39 40 | Popular Tags |