01: package JSci.mathml;
02:
03: import org.w3c.dom.*;
04: import org.w3c.dom.mathml.*;
05:
06: /**
07: * Implements a MathML <code>set</code> element.
08: * @version 1.0
09: * @author Mark Hale
10: */
11: public class MathMLSetElementImpl extends MathMLContentContainerImpl
12: implements MathMLSetElement {
13: /**
14: * Constructs a MathML <code>set</code> element.
15: */
16: public MathMLSetElementImpl(MathMLDocumentImpl owner,
17: String qualifiedName) {
18: super (owner, qualifiedName);
19: }
20:
21: public boolean getIsExplicit() {
22: return !(getFirstChild() instanceof MathMLBvarElement);
23: }
24:
25: public String getType() {
26: return getAttribute("type");
27: }
28:
29: public void setType(String type) {
30: setAttribute("type", type);
31: }
32: }
|