KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > mathml > MathMLSetElementImpl


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

11 public class MathMLSetElementImpl extends MathMLContentContainerImpl implements MathMLSetElement {
12         /**
13          * Constructs a MathML <code>set</code> element.
14          */

15         public MathMLSetElementImpl(MathMLDocumentImpl owner, String JavaDoc qualifiedName) {
16                 super (owner, qualifiedName);
17         }
18
19         public boolean getIsExplicit() {
20                 return !(getFirstChild() instanceof MathMLBvarElement);
21         }
22
23         public String JavaDoc getType() {
24                 return getAttribute("type");
25         }
26         public void setType(String JavaDoc type) {
27                 setAttribute("type", type);
28         }
29 }
30
31
Popular Tags