KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > mathml > MathMLPredefinedSymbolImpl


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

10 public class MathMLPredefinedSymbolImpl extends MathMLElementImpl implements MathMLPredefinedSymbol {
11         /**
12          * Constructs a MathML predefined symbol.
13          */

14         public MathMLPredefinedSymbolImpl(MathMLDocumentImpl owner, String JavaDoc qualifiedName) {
15                 super(owner, qualifiedName);
16         }
17
18         public String JavaDoc getDefinitionURL() {
19                 return getAttribute("definitionURL");
20         }
21         public void setDefinitionURL(String JavaDoc definitionURL) {
22                 setAttribute("definitionURL", definitionURL);
23         }
24
25         public String JavaDoc getEncoding() {
26                 return getAttribute("encoding");
27         }
28         public void setEncoding(String JavaDoc encoding) {
29                 setAttribute("encoding", encoding);
30         }
31
32         public String JavaDoc getArity() {
33                 return "0";
34         }
35
36         public String JavaDoc getSymbolName() {
37                 return getLocalName();
38         }
39 }
40
41
Popular Tags