DeferredProcessingInstructionImplpublic class DeferredProcessingInstructionImpl extends ProcessingInstructionImpl implements DeferredNodeProcessing Instructions (PIs) permit documents to carry
processor-specific information alongside their actual content. PIs
are most common in XML, but they are supported in HTML as well. |
Fields Summary |
---|
static final long | serialVersionUIDSerialization version. | protected transient int | fNodeIndexNode index. |
Constructors Summary |
---|
DeferredProcessingInstructionImpl(DeferredDocumentImpl ownerDocument, int nodeIndex)This is the deferred constructor. Only the fNodeIndex is given here.
All other data, can be requested from the ownerDocument via the index.
//
// Constructors
//
super(ownerDocument, null, null);
fNodeIndex = nodeIndex;
needsSyncData(true);
|
Methods Summary |
---|
public int | getNodeIndex()Returns the node index.
return fNodeIndex;
| protected void | synchronizeData()Synchronizes the data.
// no need to sync in the future
needsSyncData(false);
// fluff data
DeferredDocumentImpl ownerDocument =
(DeferredDocumentImpl) this.ownerDocument();
target = ownerDocument.getNodeName(fNodeIndex);
data = ownerDocument.getNodeValueString(fNodeIndex);
|
|