1 package JSci.mathml; 2 3 import org.w3c.dom.mathml.*; 4 5 10 public class MathMLPresentationTokenImpl extends MathMLElementImpl implements MathMLPresentationToken { 11 14 public MathMLPresentationTokenImpl(MathMLDocumentImpl owner, String qualifiedName) { 15 super(owner, qualifiedName); 16 } 17 18 public String getMathvariant() { 19 return getAttribute("mathvariant"); 20 } 21 public void setMathvariant(String mathvariant) { 22 setAttribute("mathvariant", mathvariant); 23 } 24 25 public String getMathsize() { 26 return getAttribute("mathsize"); 27 } 28 public void setMathsize(String mathsize) { 29 setAttribute("mathsize", mathsize); 30 } 31 32 public String getMathfamily() { 33 return getAttribute("mathfamily"); 34 } 35 public void setMathfamily(String mathfamily) { 36 setAttribute("mathfamily", mathfamily); 37 } 38 39 public String getMathcolor() { 40 return getAttribute("mathcolor"); 41 } 42 public void setMathcolor(String mathcolor) { 43 setAttribute("mathcolor", mathcolor); 44 } 45 46 public String getMathbackground() { 47 return getAttribute("mathbackground"); 48 } 49 public void setMathbackground(String mathbackground) { 50 setAttribute("mathbackground", mathbackground); 51 } 52 53 public MathMLNodeList getContents() { 54 return (MathMLNodeList) getChildNodes(); 55 } 56 } 57 58 | Popular Tags |