Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 110   Methods: 18
NCLOC: 78   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
DomDocumentType.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.IDomDocumentType;
 14   
 import org.jbind.xml.dom3.types.IDomNamedNodeMap;
 15   
 import org.jbind.xml.dom3.types.IDomNodeList;
 16   
 import org.jbind.xml.dom3.types.IDomVisitor;
 17   
 import org.w3c.dom.NamedNodeMap;
 18   
 import org.w3c.dom.Node;
 19   
 
 20   
 public class DomDocumentType extends DomNonAttrOrElm implements IDomDocumentType {
 21   
 
 22   
   private String myName = null;
 23   
   private String myPublicId = null;
 24   
   private String mySystemId = null;
 25   
   private String myInternalSubset = null;
 26   
 
 27   
   private IDomNamedNodeMap myEntities = null;
 28   
   private IDomNamedNodeMap myNotations = null;
 29   
 
 30  0
   public DomDocumentType(String aName, String aPublicId, String aSystemId, String anInternalSubset, IDomNamedNodeMap anEntities, IDomNamedNodeMap aNotations) {
 31  0
     super(null);
 32  0
     myName = aName;
 33  0
     myPublicId = aPublicId;
 34  0
     mySystemId = aSystemId;
 35  0
     myInternalSubset = anInternalSubset;
 36  0
     myEntities = anEntities;
 37  0
     myNotations = aNotations;
 38   
   }
 39   
 
 40  0
   public DomDocumentType(IDomDocumentType aDomDocumentType, boolean aDeep) {
 41  0
     super(aDomDocumentType, aDeep);
 42  0
     myName = aDomDocumentType.getName();
 43  0
     myPublicId = aDomDocumentType.getPublicId();
 44  0
     mySystemId = aDomDocumentType.getSystemId();
 45   
   }
 46   
 
 47  0
   public String getNodeValue() {
 48  0
     return null;
 49   
   }
 50   
 
 51  0
   public void setNodeValue(String aString) {
 52   
     // The specification says that setting the node value of a document has no effect
 53   
   }
 54   
 
 55  0
   public String getNodeName() {
 56  0
     return getName();
 57   
   }
 58   
 
 59  0
   public String getName() {
 60  0
     return myName;
 61   
   }
 62   
 
 63  0
   public short getNodeType() {
 64  0
     return DOCUMENT_TYPE_NODE;
 65   
   }
 66   
 
 67  0
   public Node cloneNode(boolean aDeep) {
 68  0
     return new DomDocumentType(this, aDeep);
 69   
   }
 70   
 
 71  0
   public IDomNodeList doCloneChildNodes(IDomNodeList aDomNodeList, boolean aDeep) {
 72   
     // A DocumentTypeNode has no child nodes.
 73  0
     return aDomNodeList;
 74   
   }
 75   
 
 76  0
   public String getPublicId() {
 77  0
     return myPublicId;
 78   
   }
 79  0
   public String getSystemId() {
 80  0
     return mySystemId;
 81   
   }
 82  0
   public String getInternalSubset() {
 83  0
     return myInternalSubset;
 84   
   }
 85   
 
 86  0
   public NamedNodeMap getEntities() {
 87  0
     return myEntities;
 88   
   }
 89  0
   public NamedNodeMap getNotations() {
 90  0
     return myNotations;
 91   
   }
 92   
 
 93  0
   protected void doBeforeAccept(IDomVisitor aDomVisitor) {
 94  0
     aDomVisitor.visitDocumentTypeStart(this);
 95   
   }
 96  0
   protected void doAfterAccept(IDomVisitor aDomVisitor) {
 97  0
     aDomVisitor.visitDocumentTypeEnd(this);
 98   
   }
 99   
 
 100  0
   public void setOwnerDocument(IDomDocument aDomDocument) {
 101  0
     myOwnerDocument = aDomDocument;
 102   
   }
 103   
 
 104  0
   public String getTextContent() {
 105  0
     return null;
 106   
   }
 107   
 
 108   
 
 109   
 }
 110