001 /* 002 * Copyright 2002 - 2007 JEuclid, http://jeuclid.sf.net 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017 /* $Id: Mn.java,v 923658a2b249 2009/09/11 09:57:31 max $ */ 018 019 package net.sourceforge.jeuclid.elements.presentation.token; 020 021 import org.apache.batik.dom.AbstractDocument; 022 import org.w3c.dom.Node; 023 024 /** 025 * This class presents numbers in a equation. 026 * 027 * @version $Revision: 923658a2b249 $ 028 */ 029 public final class Mn extends AbstractTokenWithTextLayout { 030 031 /** 032 * The XML element from this class. 033 */ 034 public static final String ELEMENT = "mn"; 035 036 private static final long serialVersionUID = 1L; 037 038 /** 039 * Default constructor. Sets MathML Namespace. 040 * 041 * @param qname 042 * Qualified name. 043 * @param odoc 044 * Owner Document. 045 */ 046 public Mn(final String qname, final AbstractDocument odoc) { 047 super(qname, odoc); 048 } 049 050 /** {@inheritDoc} */ 051 @Override 052 protected Node newNode() { 053 return new Mn(this.nodeName, this.ownerDocument); 054 } 055 056 }