01: package JSci.mathml;
02:
03: import org.w3c.dom.mathml.*;
04:
05: /**
06: * Implements a MathML predefined symbol.
07: * @version 1.0
08: * @author Mark Hale
09: */
10: public class MathMLPredefinedSymbolImpl extends MathMLElementImpl
11: implements MathMLPredefinedSymbol {
12: /**
13: * Constructs a MathML predefined symbol.
14: */
15: public MathMLPredefinedSymbolImpl(MathMLDocumentImpl owner,
16: String qualifiedName) {
17: super (owner, qualifiedName);
18: }
19:
20: public String getDefinitionURL() {
21: return getAttribute("definitionURL");
22: }
23:
24: public void setDefinitionURL(String definitionURL) {
25: setAttribute("definitionURL", definitionURL);
26: }
27:
28: public String getEncoding() {
29: return getAttribute("encoding");
30: }
31:
32: public void setEncoding(String encoding) {
33: setAttribute("encoding", encoding);
34: }
35:
36: public String getArity() {
37: return "0";
38: }
39:
40: public String getSymbolName() {
41: return getLocalName();
42: }
43: }
|