Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 68   Methods: 11
NCLOC: 43   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
DomEntityReference.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.IDomEntityReference;
 14   
 import org.jbind.xml.dom3.types.IDomNodeList;
 15   
 import org.jbind.xml.dom3.types.IDomVisitor;
 16   
 import org.w3c.dom.Node;
 17   
 
 18   
 public class DomEntityReference extends DomNonAttrOrElm implements IDomEntityReference {
 19   
 
 20   
   private String myName = null;
 21   
 
 22  0
   public DomEntityReference(IDomDocument aDomDocument, String aName) {
 23  0
     super(aDomDocument);
 24  0
     myName = aName;
 25   
   }
 26   
 
 27  0
   protected DomEntityReference(IDomEntityReference aDomEntityReference, boolean aDeep) {
 28  0
     super(aDomEntityReference, aDeep);
 29  0
     myName = aDomEntityReference.getNodeName();
 30   
   }
 31   
 
 32  0
   public String getNodeName() {
 33  0
     return myName;
 34   
   }
 35   
 
 36  0
   public short getNodeType() {
 37  0
     return ENTITY_REFERENCE_NODE;
 38   
   }
 39   
 
 40  0
   public Node cloneNode(boolean aDeep) {
 41  0
     return new DomEntityReference(this, aDeep);
 42   
   }
 43   
 
 44  0
   protected IDomNodeList doCloneChildNodes(IDomNodeList aDomNodeList, boolean aDeep) {
 45  0
     return new DomNodeList(aDomNodeList, aDeep);
 46   
   }
 47   
 
 48  0
   public String getNodeValue() throws DomException {
 49  0
     return null;
 50   
   }
 51   
 
 52  0
   public void setNodeValue(String aString) throws DomException {
 53   
     // The specification says that setting the node value of an entity reference has no effect
 54   
   }
 55   
 
 56  0
   protected void doBeforeAccept(IDomVisitor aDomVisitor) {
 57  0
     aDomVisitor.visitEntityReferenceStart(this);
 58   
   }
 59  0
   protected void doAfterAccept(IDomVisitor aDomVisitor) {
 60  0
     aDomVisitor.visitEntityReferenceEnd(this);
 61   
   }
 62   
 
 63  0
   public String getTextContent() {
 64  0
     return collectTextContent(myChildNodes);
 65   
   }
 66   
 
 67   
 }
 68