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: Maligngroup.java,v bc1d5fde7b73 2009/06/01 14:40:54 maxberger $ */
018
019 package net.sourceforge.jeuclid.elements.presentation.table;
020
021 import net.sourceforge.jeuclid.elements.AbstractInvisibleJEuclidElement;
022
023 import org.apache.batik.dom.AbstractDocument;
024 import org.w3c.dom.Node;
025 import org.w3c.dom.mathml.MathMLAlignGroupElement;
026
027 /**
028 * This class represents the maligngroup tag.
029 *
030 * @version $Revision: bc1d5fde7b73 $
031 */
032
033 public final class Maligngroup extends AbstractInvisibleJEuclidElement
034 implements MathMLAlignGroupElement {
035
036 /**
037 * The XML element from this class.
038 */
039 public static final String ELEMENT = "maligngroup";
040
041 /** The groupalign attribute. */
042 public static final String ATTR_GROUPALIGN = "groupalign";
043
044 private static final long serialVersionUID = 1L;
045
046 /**
047 * Default constructor. Sets MathML Namespace.
048 *
049 * @param qname
050 * Qualified name.
051 * @param odoc
052 * Owner Document.
053 */
054 public Maligngroup(final String qname, final AbstractDocument odoc) {
055 super(qname, odoc);
056 }
057
058 /** {@inheritDoc} */
059 @Override
060 protected Node newNode() {
061 return new Maligngroup(this.nodeName, this.ownerDocument);
062 }
063
064 /** {@inheritDoc} */
065 public String getGroupalign() {
066 return this.getMathAttribute(Maligngroup.ATTR_GROUPALIGN);
067 }
068
069 /** {@inheritDoc} */
070 public void setGroupalign(final String groupalign) {
071 this.setAttribute(Maligngroup.ATTR_GROUPALIGN, groupalign);
072 }
073 }