/** Returns the URI of the given node. */ public String getNodeURI(int nodeIndex) { return getNodeURI(nodeIndex, true); }
/** Synchronizes the data (name and value) for fast nodes. */ protected void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl)this.ownerDocument; name = ownerDocument.getNodeName(fNodeIndex); // public and system ids publicID = ownerDocument.getNodeValue(fNodeIndex); systemID = ownerDocument.getNodeURI(fNodeIndex); int extraDataIndex = ownerDocument.getNodeExtra(fNodeIndex); internalSubset = ownerDocument.getNodeValue(extraDataIndex); } // synchronizeData()
/** Synchronizes the data (name and value) for fast nodes. */ protected void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl) ownerDocument(); name = ownerDocument.getNodeName(fNodeIndex); // extract prefix and local part from QName int index = name.indexOf(':'); if (index < 0) { localName = name; } else { localName = name.substring(index + 1); } int extra = ownerDocument.getNodeExtra(fNodeIndex); isSpecified((extra & SPECIFIED) != 0); isIdAttribute((extra & ID) != 0); namespaceURI = ownerDocument.getNodeURI(fNodeIndex); int extraNode = ownerDocument.getLastChild(fNodeIndex); type = ownerDocument.getTypeInfo(extraNode); } // synchronizeData()
/** * Synchronize the entity data. This is special because of the way * that the "fast" version stores the information. */ protected void synchronizeData() { // no need to sychronize again needsSyncData(false); // get the node data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl)this.ownerDocument; name = ownerDocument.getNodeName(fNodeIndex); // get the entity data publicId = ownerDocument.getNodeValue(fNodeIndex); systemId = ownerDocument.getNodeURI(fNodeIndex); int extraDataIndex = ownerDocument.getNodeExtra(fNodeIndex); ownerDocument.getNodeType(extraDataIndex); notationName = ownerDocument.getNodeName(extraDataIndex); // encoding and version DOM L3 version = ownerDocument.getNodeValue(extraDataIndex); encoding = ownerDocument.getNodeURI(extraDataIndex); // baseURI, actualEncoding DOM L3 int extraIndex2 = ownerDocument.getNodeExtra(extraDataIndex); baseURI = ownerDocument.getNodeName(extraIndex2); inputEncoding = ownerDocument.getNodeValue(extraIndex2); } // synchronizeData()
/** * Synchronizes the data. This is special because of the way * that the "fast" notation stores its information internally. */ protected void synchronizeData() { // no need to synchronize again needsSyncData(false); // name DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl)this.ownerDocument(); name = ownerDocument.getNodeName(fNodeIndex); ownerDocument.getNodeType(fNodeIndex); // public and system ids publicId = ownerDocument.getNodeValue(fNodeIndex); systemId = ownerDocument.getNodeURI(fNodeIndex); int extraDataIndex = ownerDocument.getNodeExtra(fNodeIndex); ownerDocument.getNodeType(extraDataIndex); baseURI = ownerDocument.getNodeName(extraDataIndex); } // synchronizeData()
namespaceURI = ownerDocument.getNodeURI(fNodeIndex); type = (XSTypeDefinition)ownerDocument.getTypeInfo(fNodeIndex);