KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > mathml > MathMLConditionElementImpl


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

10 public class MathMLConditionElementImpl extends MathMLElementImpl implements MathMLConditionElement {
11         /**
12          * Constructs a MathML condition element.
13          */

14         public MathMLConditionElementImpl(MathMLDocumentImpl owner, String JavaDoc qualifiedName) {
15                 super(owner, qualifiedName);
16         }
17
18         public MathMLApplyElement getCondition() {
19                 return (MathMLApplyElement) getFirstChild();
20         }
21         public void setCondition(MathMLApplyElement condition) {
22                 replaceChild(condition, getFirstChild());
23         }
24 }
25
26
Popular Tags