/** * This is the deferred constructor. Only the fNodeIndex is given here. * All other data, can be requested from the ownerDocument via the index. */ DeferredProcessingInstructionImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) { super(ownerDocument, null, null); fNodeIndex = nodeIndex; needsSyncData(true); } // <init>(DeferredDocumentImpl,int)
/** Synchronizes the data. */ protected void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl) this.ownerDocument(); target = ownerDocument.getNodeName(fNodeIndex); data = ownerDocument.getNodeValueString(fNodeIndex); } // synchronizeData()
node = new DeferredProcessingInstructionImpl(this, nodeIndex); break;