1 57 58 package org.enhydra.apache.xerces.dom; 59 60 import org.w3c.dom.DOMException ; 61 import org.w3c.dom.Node ; 62 import org.w3c.dom.ProcessingInstruction ; 63 64 74 public class ProcessingInstructionImpl 75 extends CharacterDataImpl 76 implements ProcessingInstruction { 77 78 82 83 static final long serialVersionUID = 7554435174099981510L; 84 85 89 protected String target; 90 91 95 96 public ProcessingInstructionImpl(CoreDocumentImpl ownerDoc, 97 String target, String data) { 98 super(ownerDoc, data); 99 this.target = target; 100 } 101 102 106 110 public short getNodeType() { 111 return Node.PROCESSING_INSTRUCTION_NODE; 112 } 113 114 117 public String getNodeName() { 118 if (needsSyncData()) { 119 synchronizeData(); 120 } 121 return target; 122 } 123 124 128 139 public String getTarget() { 140 if (needsSyncData()) { 141 synchronizeData(); 142 } 143 return target; 144 145 } 147 159 public String getData() { 160 if (needsSyncData()) { 161 synchronizeData(); 162 } 163 return data; 164 165 } 167 173 public void setData(String data) { 174 setNodeValue(data); 177 } 179 } | Popular Tags |