1 57 58 package com.sun.org.apache.xerces.internal.dom; 59 60 import org.w3c.dom.Node ; 61 import org.w3c.dom.ProcessingInstruction ; 62 63 73 public class ProcessingInstructionImpl 74 extends CharacterDataImpl 75 implements ProcessingInstruction { 76 77 81 82 static final long serialVersionUID = 7554435174099981510L; 83 84 88 protected String target; 89 90 94 95 public ProcessingInstructionImpl(CoreDocumentImpl ownerDoc, 96 String target, String data) { 97 super(ownerDoc, data); 98 this.target = target; 99 } 100 101 105 109 public short getNodeType() { 110 return Node.PROCESSING_INSTRUCTION_NODE; 111 } 112 113 116 public String getNodeName() { 117 if (needsSyncData()) { 118 synchronizeData(); 119 } 120 return target; 121 } 122 123 127 138 public String getTarget() { 139 if (needsSyncData()) { 140 synchronizeData(); 141 } 142 return target; 143 144 } 146 158 public String getData() { 159 if (needsSyncData()) { 160 synchronizeData(); 161 } 162 return data; 163 164 } 166 172 public void setData(String data) { 173 setNodeValue(data); 176 } 178 179 180 184 public String getBaseURI() { 185 186 if (needsSyncData()) { 187 synchronizeData(); 188 } 189 return ownerNode.getBaseURI(); 190 } 191 192 193 } | Popular Tags |