KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > mathml > MathMLXMLAnnotationElementImpl


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

10 public class MathMLXMLAnnotationElementImpl extends MathMLElementImpl implements MathMLXMLAnnotationElement {
11         /**
12          * Constructs a MathML XML annotation element.
13          */

14         public MathMLXMLAnnotationElementImpl(MathMLDocumentImpl owner, String JavaDoc qualifiedName) {
15                 super(owner, qualifiedName);
16         }
17
18         public String JavaDoc getEncoding() {
19                 return getAttribute("encoding");
20         }
21         public void setEncoding(String JavaDoc encoding) {
22                 setAttribute("encoding", encoding);
23         }
24 }
25
26
Popular Tags