1 16 17 package org.apache.xerces.dom; 18 19 import org.w3c.dom.Node ; 20 import org.w3c.dom.ProcessingInstruction ; 21 22 34 public class ProcessingInstructionImpl 35 extends CharacterDataImpl 36 implements ProcessingInstruction { 37 38 42 43 static final long serialVersionUID = 7554435174099981510L; 44 45 49 protected String target; 50 51 55 56 public ProcessingInstructionImpl(CoreDocumentImpl ownerDoc, 57 String target, String data) { 58 super(ownerDoc, data); 59 this.target = target; 60 } 61 62 66 70 public short getNodeType() { 71 return Node.PROCESSING_INSTRUCTION_NODE; 72 } 73 74 77 public String getNodeName() { 78 if (needsSyncData()) { 79 synchronizeData(); 80 } 81 return target; 82 } 83 84 88 99 public String getTarget() { 100 if (needsSyncData()) { 101 synchronizeData(); 102 } 103 return target; 104 105 } 107 119 public String getData() { 120 if (needsSyncData()) { 121 synchronizeData(); 122 } 123 return data; 124 125 } 127 133 public void setData(String data) { 134 setNodeValue(data); 137 } 139 140 141 149 public String getBaseURI() { 150 151 if (needsSyncData()) { 152 synchronizeData(); 153 } 154 return ownerNode.getBaseURI(); 155 } 156 157 158 } | Popular Tags |