Clover coverage report - dom4j - 1.5
Coverage timestamp: vr sep 3 2004 20:47:03 GMT+01:00
file stats: LOC: 199   Methods: 27
NCLOC: 96   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
DOMNamespace.java - 7,4% 7,4% 7,4%
coverage coverage
 1    /*
 2    * Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
 3    *
 4    * This software is open source.
 5    * See the bottom of this file for the licence.
 6    *
 7    * $Id: DOMNamespace.java,v 1.7 2004/06/25 08:03:35 maartenc Exp $
 8    */
 9   
 10    package org.dom4j.dom;
 11   
 12    import org.dom4j.Element;
 13    import org.dom4j.tree.DefaultNamespace;
 14    import org.w3c.dom.DOMException;
 15    import org.w3c.dom.Document;
 16    import org.w3c.dom.NamedNodeMap;
 17    import org.w3c.dom.NodeList;
 18   
 19    /** <p><code>DOMNamespace</code> implements a Namespace that is compatable
 20    * with the DOM API.</p>
 21    *
 22    * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
 23    * @version $Revision: 1.7 $
 24    */
 25    public class DOMNamespace extends DefaultNamespace implements org.w3c.dom.Node {
 26   
 27  234 public DOMNamespace(String prefix, String uri) {
 28  234 super( prefix, uri );
 29    }
 30   
 31  0 public DOMNamespace(Element parent, String prefix, String uri) {
 32  0 super( parent, prefix, uri );
 33    }
 34   
 35   
 36   
 37    // org.w3c.dom.Node interface
 38    //-------------------------------------------------------------------------
 39  0 public boolean supports(String feature, String version) {
 40  0 return DOMNodeHelper.supports(this, feature, version);
 41    }
 42   
 43  0 public String getNamespaceURI() {
 44  0 return DOMNodeHelper.getNamespaceURI(this);
 45    }
 46   
 47  19548 public String getPrefix() {
 48  19548 return DOMNodeHelper.getPrefix(this);
 49    }
 50   
 51  0 public void setPrefix(String prefix) throws DOMException {
 52  0 DOMNodeHelper.setPrefix(this, prefix);
 53    }
 54   
 55  0 public String getLocalName() {
 56  0 return DOMNodeHelper.getLocalName(this);
 57    }
 58   
 59  0 public String getNodeName() {
 60  0 return getName();
 61    }
 62   
 63    //already part of API
 64    //
 65    //public short getNodeType();
 66   
 67   
 68   
 69  0 public String getNodeValue() throws DOMException {
 70  0 return DOMNodeHelper.getNodeValue(this);
 71    }
 72   
 73  0 public void setNodeValue(String nodeValue) throws DOMException {
 74  0 DOMNodeHelper.setNodeValue(this, nodeValue);
 75    }
 76   
 77   
 78  0 public org.w3c.dom.Node getParentNode() {
 79  0 return DOMNodeHelper.getParentNode(this);
 80    }
 81   
 82  0 public NodeList getChildNodes() {
 83  0 return DOMNodeHelper.getChildNodes(this);
 84    }
 85   
 86  0 public org.w3c.dom.Node getFirstChild() {
 87  0 return DOMNodeHelper.getFirstChild(this);
 88    }
 89   
 90  0 public org.w3c.dom.Node getLastChild() {
 91  0 return DOMNodeHelper.getLastChild(this);
 92    }
 93   
 94  0 public org.w3c.dom.Node getPreviousSibling() {
 95  0 return DOMNodeHelper.getPreviousSibling(this);
 96    }
 97   
 98  0 public org.w3c.dom.Node getNextSibling() {
 99  0 return DOMNodeHelper.getNextSibling(this);
 100    }
 101   
 102  0 public NamedNodeMap getAttributes() {
 103  0 return DOMNodeHelper.getAttributes(this);
 104    }
 105   
 106  0 public Document getOwnerDocument() {
 107  0 return DOMNodeHelper.getOwnerDocument(this);
 108    }
 109   
 110  0 public org.w3c.dom.Node insertBefore(
 111    org.w3c.dom.Node newChild,
 112    org.w3c.dom.Node refChild
 113    ) throws DOMException {
 114  0 return DOMNodeHelper.insertBefore(this, newChild, refChild);
 115    }
 116   
 117  0 public org.w3c.dom.Node replaceChild(
 118    org.w3c.dom.Node newChild,
 119    org.w3c.dom.Node oldChild
 120    ) throws DOMException {
 121  0 return DOMNodeHelper.replaceChild(this, newChild, oldChild);
 122    }
 123   
 124  0 public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws DOMException {
 125  0 return DOMNodeHelper.removeChild(this, oldChild);
 126    }
 127   
 128  0 public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws DOMException {
 129  0 return DOMNodeHelper.appendChild(this, newChild);
 130    }
 131   
 132  0 public boolean hasChildNodes() {
 133  0 return DOMNodeHelper.hasChildNodes(this);
 134    }
 135   
 136  0 public org.w3c.dom.Node cloneNode(boolean deep) {
 137  0 return DOMNodeHelper.cloneNode(this, deep);
 138    }
 139   
 140  0 public void normalize() {
 141  0 DOMNodeHelper.normalize(this);
 142    }
 143   
 144  0 public boolean isSupported(String feature, String version) {
 145  0 return DOMNodeHelper.isSupported(this, feature, version);
 146    }
 147   
 148  0 public boolean hasAttributes() {
 149  0 return DOMNodeHelper.hasAttributes(this);
 150    }
 151    }
 152   
 153   
 154   
 155   
 156    /*
 157    * Redistribution and use of this software and associated documentation
 158    * ("Software"), with or without modification, are permitted provided
 159    * that the following conditions are met:
 160    *
 161    * 1. Redistributions of source code must retain copyright
 162    * statements and notices. Redistributions must also contain a
 163    * copy of this document.
 164    *
 165    * 2. Redistributions in binary form must reproduce the
 166    * above copyright notice, this list of conditions and the
 167    * following disclaimer in the documentation and/or other
 168    * materials provided with the distribution.
 169    *
 170    * 3. The name "DOM4J" must not be used to endorse or promote
 171    * products derived from this Software without prior written
 172    * permission of MetaStuff, Ltd. For written permission,
 173    * please contact dom4j-info@metastuff.com.
 174    *
 175    * 4. Products derived from this Software may not be called "DOM4J"
 176    * nor may "DOM4J" appear in their names without prior written
 177    * permission of MetaStuff, Ltd. DOM4J is a registered
 178    * trademark of MetaStuff, Ltd.
 179    *
 180    * 5. Due credit should be given to the DOM4J Project -
 181    * http://www.dom4j.org
 182    *
 183    * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS
 184    * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
 185    * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 186    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
 187    * METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 188    * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 189    * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 190    * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 191    * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 192    * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 193    * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 194    * OF THE POSSIBILITY OF SUCH DAMAGE.
 195    *
 196    * Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
 197    *
 198    * $Id: DOMNamespace.java,v 1.7 2004/06/25 08:03:35 maartenc Exp $
 199    */