Coverage Report - net.sourceforge.jeuclid.elements.presentation.general.Mpadded
 
Classes in this File Line Coverage Branch Coverage Complexity
Mpadded
13%
2/15
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007 - 2007 JEuclid, http://jeuclid.sf.net
 3  
  * 
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 
 17  
 /* $Id: Mpadded.java,v 2986a8eeaebc 2009/09/24 12:53:08 max $ */
 18  
 
 19  
 package net.sourceforge.jeuclid.elements.presentation.general;
 20  
 
 21  
 import net.sourceforge.jeuclid.elements.presentation.AbstractContainer;
 22  
 
 23  
 import org.apache.batik.dom.AbstractDocument;
 24  
 import org.w3c.dom.Node;
 25  
 import org.w3c.dom.mathml.MathMLPaddedElement;
 26  
 
 27  
 /**
 28  
  * This class implements the mpadded element.
 29  
  * <p>
 30  
  * TODO: none of the attributes are actually implemented yet.
 31  
  * 
 32  
  * @version $Revision: 2986a8eeaebc $
 33  
  */
 34  
 public final class Mpadded extends AbstractContainer implements
 35  
         MathMLPaddedElement {
 36  
 
 37  
     /** constant for depth attribute. */
 38  
     public static final String ATTR_DEPTH = "depth";
 39  
 
 40  
     /** constant for height attribute. */
 41  
     public static final String ATTR_HEIGHT = "height";
 42  
 
 43  
     /** constant for lspace attribute. */
 44  
     public static final String ATTR_LSPACE = "lspace";
 45  
 
 46  
     /** constant for width attribute. */
 47  
     public static final String ATTR_WIDTH = "width";
 48  
 
 49  
     /**
 50  
      * The MathML element name for this class.
 51  
      */
 52  
     public static final String ELEMENT = "mpadded";
 53  
 
 54  
     private static final long serialVersionUID = 1L;
 55  
 
 56  
     /**
 57  
      * Default constructor. Sets MathML Namespace.
 58  
      * 
 59  
      * @param qname
 60  
      *            Qualified name.
 61  
      * @param odoc
 62  
      *            Owner Document.
 63  
      */
 64  
     public Mpadded(final String qname, final AbstractDocument odoc) {
 65  1463
         super(qname, odoc);
 66  1463
     }
 67  
 
 68  
     /** {@inheritDoc} */
 69  
     @Override
 70  
     protected Node newNode() {
 71  0
         return new Mpadded(this.nodeName, this.ownerDocument);
 72  
     }
 73  
 
 74  
     /** {@inheritDoc} */
 75  
     public String getDepth() {
 76  0
         return this.getMathAttribute(Mpadded.ATTR_DEPTH);
 77  
     }
 78  
 
 79  
     /** {@inheritDoc} */
 80  
     public String getHeight() {
 81  0
         return this.getMathAttribute(Mpadded.ATTR_HEIGHT);
 82  
     }
 83  
 
 84  
     /** {@inheritDoc} */
 85  
     public String getLspace() {
 86  0
         return this.getMathAttribute(Mpadded.ATTR_LSPACE);
 87  
     }
 88  
 
 89  
     /** {@inheritDoc} */
 90  
     public String getWidth() {
 91  0
         return this.getMathAttribute(Mpadded.ATTR_WIDTH);
 92  
     }
 93  
 
 94  
     /** {@inheritDoc} */
 95  
     public void setDepth(final String depth) {
 96  0
         this.setAttribute(Mpadded.ATTR_DEPTH, depth);
 97  0
     }
 98  
 
 99  
     /** {@inheritDoc} */
 100  
     public void setHeight(final String height) {
 101  0
         this.setAttribute(Mpadded.ATTR_HEIGHT, height);
 102  0
     }
 103  
 
 104  
     /** {@inheritDoc} */
 105  
     public void setLspace(final String lspace) {
 106  0
         this.setAttribute(Mpadded.ATTR_LSPACE, lspace);
 107  0
     }
 108  
 
 109  
     /** {@inheritDoc} */
 110  
     public void setWidth(final String width) {
 111  0
         this.setAttribute(Mpadded.ATTR_WIDTH, width);
 112  0
     }
 113  
 
 114  
 }