KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > mathml > MathMLDOMImplementationImpl


1 package JSci.mathml;
2
3 import org.w3c.dom.*;
4 import org.w3c.dom.mathml.*;
5 import org.apache.xerces.dom.DOMImplementationImpl;
6
7 /**
8  * Implements a MathML DOM implementation.
9  * @version 1.0
10  * @author Mark Hale
11  */

12 public class MathMLDOMImplementationImpl extends DOMImplementationImpl implements MathMLDOMImplementation {
13         private static final MathMLDOMImplementation singleton = new MathMLDOMImplementationImpl();
14
15         private MathMLDOMImplementationImpl() {
16                 super();
17         }
18
19         public final MathMLDocument createMathMLDocument() {
20                 return new MathMLDocumentImpl();
21         }
22
23         /** NON-DOM: Obtain and return a single shared object */
24         public static DOMImplementation getDOMImplementation() {
25                 return singleton;
26         }
27 }
28
29
Popular Tags