KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > mathml > MathMLApplyElementImpl


1 package JSci.mathml;
2
3 import org.w3c.dom.*;
4 import org.w3c.dom.mathml.*;
5
6 /**
7  * Implements a MathML <code>apply</code> element.
8  * @version 1.0
9  * @author Mark Hale
10  */

11 public class MathMLApplyElementImpl extends MathMLContentContainerImpl implements MathMLApplyElement {
12         /**
13          * Constructs a MathML <code>apply</code> element.
14          */

15         public MathMLApplyElementImpl(MathMLDocumentImpl owner, String JavaDoc qualifiedName) {
16                 super (owner, qualifiedName);
17         }
18
19         public MathMLElement getOperator() {
20                 return (MathMLElement) getFirstChild();
21         }
22         public void setOperator(MathMLElement operator) {
23                 replaceChild(operator, getFirstChild());
24         }
25
26         public MathMLElement getLowLimit() {
27                 return (MathMLElement) getNodeByName("lowlimit");
28         }
29         public void setLowLimit(MathMLElement lowlimit) throws DOMException {
30                 setNodeByName(lowlimit, "lowlimit");
31         }
32
33         public MathMLElement getUpLimit() {
34                 return (MathMLElement) getNodeByName("uplimit");
35         }
36         public void setUpLimit(MathMLElement uplimit) throws DOMException {
37                 setNodeByName(uplimit, "uplimit");
38         }
39 }
40
41
Popular Tags