Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 92   Methods: 16
NCLOC: 64   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
DomProcessingInstruction.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.core.base.ITextContentProvider;
 13   
 import org.jbind.xml.dom3.types.IDomDocument;
 14   
 import org.jbind.xml.dom3.types.IDomNodeList;
 15   
 import org.jbind.xml.dom3.types.IDomProcessingInstruction;
 16   
 import org.jbind.xml.dom3.types.IDomVisitor;
 17   
 import org.w3c.dom.Node;
 18   
 
 19   
 public class DomProcessingInstruction extends DomNonAttrOrElm implements IDomProcessingInstruction {
 20   
 
 21   
   private String myTarget = null;
 22   
   private String myData = null;
 23   
 
 24  0
   public DomProcessingInstruction(IDomDocument aDomDocument, String aTarget, String aData) {
 25  0
     super(aDomDocument);
 26  0
     myTarget = aTarget;
 27  0
     myData = aData;
 28   
   }
 29   
 
 30  0
   public DomProcessingInstruction(IDomProcessingInstruction aDomProcessingInstruction, boolean aDeep) {
 31  0
     super(aDomProcessingInstruction, aDeep);
 32  0
     myTarget = aDomProcessingInstruction.getTarget();
 33  0
     myData = aDomProcessingInstruction.getData();
 34   
   }
 35   
 
 36  0
   public String getNodeName() {
 37  0
     return myTarget;
 38   
   }
 39   
 
 40  0
   public short getNodeType() {
 41  0
     return PROCESSING_INSTRUCTION_NODE;
 42   
   }
 43   
 
 44  0
   public Node cloneNode(boolean aDeep) {
 45  0
     return new DomProcessingInstruction(this, aDeep);
 46   
   }
 47   
 
 48  0
   protected IDomNodeList doCloneChildNodes(IDomNodeList aDomNodeList, boolean aDeep) {
 49  0
     return aDomNodeList;
 50   
   }
 51   
 
 52  0
   public String getData() {
 53  0
     return myData;
 54   
   }
 55   
 
 56  0
   public String getNodeValue() throws DomException {
 57  0
     return myData;
 58   
   }
 59   
 
 60  0
   public String getTarget() {
 61  0
     return myTarget;
 62   
   }
 63   
 
 64  0
   public void setData(String aData) throws DomException {
 65  0
     checkMutability();
 66  0
     myData = aData;
 67   
   }
 68   
 
 69  0
   public void setNodeValue(String nodeValue) throws DomException {
 70  0
     myData = nodeValue;
 71   
   }
 72   
 
 73  0
   protected void doBeforeAccept(IDomVisitor aDomVisitor) {
 74  0
     aDomVisitor.visitProcessingInstructionStart(this);
 75   
   }
 76  0
   protected void doAfterAccept(IDomVisitor aDomVisitor) {
 77  0
     aDomVisitor.visitProcessingInstructionEnd(this);
 78   
   }
 79   
 
 80  0
   public String getTextContent() {
 81  0
     return getNodeValue();
 82   
   }
 83   
 
 84  0
   public void setTextContent(ITextContentProvider aTextContentProvider) {
 85  0
     setNodeValue(aTextContentProvider.getTextContent_());
 86   
   }
 87   
 
 88  0
   public void setTextContent(String aString) {
 89  0
     setNodeValue(aString);
 90   
   }
 91   
 }
 92