Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 82   Methods: 13
NCLOC: 55   Classes: 1
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover.
 
 Source file Conditionals Statements Methods TOTAL
DomNotation.java - 0% 0% 0%
 1   
 /*
 2   
  * JBind
 3   
  *
 4   
  * Copyright (c) by Stefan Wachter. All rights reserved.
 5   
  *
 6   
  * Usage, modification, and redistribution is subject to license terms that are
 7   
  * available at 'http://www.jbind.org'. The JBind license is like the
 8   
  * 'Apache Software License V 1.1'.
 9   
  */
 10   
 package org.jbind.xml.dom3.core;
 11   
 
 12   
 import org.jbind.xml.dom3.types.IDomDocument;
 13   
 import org.jbind.xml.dom3.types.IDomNodeList;
 14   
 import org.jbind.xml.dom3.types.IDomNotation;
 15   
 import org.jbind.xml.dom3.types.IDomVisitor;
 16   
 import org.w3c.dom.Node;
 17   
 
 18   
 public class DomNotation extends DomNonAttrOrElm implements IDomNotation {
 19   
 
 20   
   private String myName = null;
 21   
   private String myPublicId = null;
 22   
   private String mySystemId = null;
 23   
 
 24  0
   public DomNotation(IDomDocument aDomDocument, String aName, String aPublicId, String aSystemId) {
 25  0
     super(aDomDocument);
 26  0
     myName = aName;
 27  0
     myPublicId = aPublicId;
 28  0
     mySystemId = aSystemId;
 29   
   }
 30   
 
 31  0
   protected DomNotation(IDomNotation aDomNotation, boolean aDeep) {
 32  0
     super(aDomNotation, aDeep);
 33  0
     myName = aDomNotation.getNodeName();
 34  0
     myPublicId = aDomNotation.getPublicId();
 35  0
     mySystemId = aDomNotation.getSystemId();
 36   
   }
 37   
 
 38  0
   public Node cloneNode(boolean aDeep) {
 39  0
     return new DomNotation(this, aDeep);
 40   
   }
 41   
 
 42  0
   protected IDomNodeList doCloneChildNodes(IDomNodeList aDomNodeList, boolean aDeep) {
 43  0
     return aDomNodeList;
 44   
   }
 45   
 
 46  0
   public String getNodeName() {
 47  0
     return myName;
 48   
   }
 49   
 
 50  0
   public short getNodeType() {
 51  0
     return NOTATION_NODE;
 52   
   }
 53   
 
 54  0
   public String getNodeValue() throws DomException {
 55  0
     return null;
 56   
   }
 57   
 
 58  0
   public void setNodeValue(String aString) throws DomException {
 59   
     // The specification says that setting the node value of a notation has no effect
 60   
   }
 61   
 
 62  0
   protected void doBeforeAccept(IDomVisitor aDomVisitor) {
 63  0
     aDomVisitor.visitNotationStart(this);
 64   
   }
 65  0
   protected void doAfterAccept(IDomVisitor aDomVisitor) {
 66  0
     aDomVisitor.visitNotationEnd(this);
 67   
   }
 68   
 
 69  0
   public String getPublicId() {
 70  0
     return myPublicId;
 71   
   }
 72   
 
 73  0
   public String getSystemId() {
 74  0
     return mySystemId;
 75   
   }
 76   
 
 77  0
   public String getTextContent() {
 78  0
     return null;
 79   
   }
 80   
 
 81   
 }
 82