1 16 17 package org.apache.xerces.dom; 18 19 29 public class DeferredProcessingInstructionImpl 30 extends ProcessingInstructionImpl 31 implements DeferredNode { 32 33 37 38 static final long serialVersionUID = -4643577954293565388L; 39 40 44 45 protected transient int fNodeIndex; 46 47 51 55 DeferredProcessingInstructionImpl(DeferredDocumentImpl ownerDocument, 56 int nodeIndex) { 57 super(ownerDocument, null, null); 58 59 fNodeIndex = nodeIndex; 60 needsSyncData(true); 61 62 } 64 68 69 public int getNodeIndex() { 70 return fNodeIndex; 71 } 72 73 77 78 protected void synchronizeData() { 79 80 needsSyncData(false); 82 83 DeferredDocumentImpl ownerDocument = 85 (DeferredDocumentImpl) this.ownerDocument(); 86 target = ownerDocument.getNodeName(fNodeIndex); 87 data = ownerDocument.getNodeValueString(fNodeIndex); 88 89 } 91 } | Popular Tags |