001 /*
002 * Copyright 2007 - 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: JEuclidObj.java,v 8afef6dd0d58 2007/09/14 08:29:58 maxberger $ */
018
019 /*
020 * Please note: This file was originally taken from the Apache FOP project,
021 * available at http://xmlgraphics.apache.org/fop/ It is therefore
022 * partially copyright (c) 1999-2007 The Apache Software Foundation.
023 *
024 * Parts of the contents are heavily inspired by work done for Barcode4J by
025 * Jeremias Maerki, available at http://barcode4j.sf.net/
026 */
027
028 package net.sourceforge.jeuclid.fop;
029
030 // FOP
031 import net.sourceforge.jeuclid.elements.AbstractJEuclidElement;
032
033 import org.apache.fop.fo.FONode;
034 import org.apache.fop.fo.XMLObj;
035
036 /**
037 * Catch all MathML objects as default element.
038 *
039 * @version $Revision: 8afef6dd0d58 $
040 */
041 public class JEuclidObj extends XMLObj {
042
043 /**
044 * Default constructor.
045 *
046 * @param parent
047 * Parent node in FO Tree
048 */
049 public JEuclidObj(final FONode parent) {
050 super(parent);
051 }
052
053 /** {@inheritDoc} */
054 @Override
055 public String getNamespaceURI() {
056 return AbstractJEuclidElement.URI;
057 }
058
059 /** {@inheritDoc} */
060 @Override
061 public String getNormalNamespacePrefix() {
062 return "mathml";
063 }
064 }