com.sun.org.apache.xerces.internal.dom
public class: DeferredNotationImpl [javadoc |
source]
java.lang.Object
com.sun.org.apache.xerces.internal.dom.NodeImpl
com.sun.org.apache.xerces.internal.dom.NotationImpl
com.sun.org.apache.xerces.internal.dom.DeferredNotationImpl
All Implemented Interfaces:
DeferredNode, Notation, Cloneable, Node, EventTarget, Serializable, NodeList
Notations are how the Document Type Description (DTD) records hints
about the format of an XML "unparsed entity" -- in other words,
non-XML data bound to this document type, which some applications
may wish to consult when manipulating the document. A Notation
represents a name-value pair, with its nodeName being set to the
declared name of the notation.
Notations are also used to formally declare the "targets" of
Processing Instructions.
Note that the Notation's data is non-DOM information; the DOM only
records what and where it is.
See the XML 1.0 spec, sections 4.7 and 2.6, for more info.
Level 1 of the DOM does not support editing Notation contents.
- xerces.internal:
- since:
PR-DOM-Level-1-19980818. -
| Field Summary |
|---|
| static final long | serialVersionUID | Serialization version. |
| protected transient int | fNodeIndex | Node index. |
| Fields inherited from com.sun.org.apache.xerces.internal.dom.NodeImpl: |
|---|
| TREE_POSITION_PRECEDING, TREE_POSITION_FOLLOWING, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_EQUIVALENT, TREE_POSITION_SAME_NODE, TREE_POSITION_DISCONNECTED, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, serialVersionUID, ELEMENT_DEFINITION_NODE, ownerNode, flags, READONLY, SYNCDATA, SYNCCHILDREN, OWNED, FIRSTCHILD, SPECIFIED, IGNORABLEWS, HASSTRING, NORMALIZED, ID |
| Constructor: |
DeferredNotationImpl(DeferredDocumentImpl ownerDocument,
int nodeIndex) {
//
// Constructors
//
super(ownerDocument, null);
fNodeIndex = nodeIndex;
needsSyncData(true);
}
This is the deferred constructor. Only the fNodeIndex is given here.
All other data, can be requested from the ownerDocument via the index. |
| Methods from com.sun.org.apache.xerces.internal.dom.NodeImpl: |
|---|
|
addEventListener, appendChild, changed, changes, cloneNode, compareDocumentPosition, compareTreePosition, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getContainer, getElementAncestor, getFeature, getFirstChild, getLastChild, getLength, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeNumber, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getReadOnly, getTextContent, getTextContent, getUserData, getUserData, getUserDataRecord, hasAttributes, hasChildNodes, hasStringValue, hasStringValue, insertBefore, internalIsIgnorableWhitespace, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isIdAttribute, isIdAttribute, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, item, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, normalize, ownerDocument, parentNode, previousSibling, removeChild, removeEventListener, replaceChild, setNodeValue, setOwnerDocument, setPrefix, setReadOnly, setTextContent, setUserData, setUserData, synchronizeData, toString |
| Method from com.sun.org.apache.xerces.internal.dom.DeferredNotationImpl Detail: |
public int getNodeIndex() {
return fNodeIndex;
}
|
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);
}
Synchronizes the data. This is special because of the way
that the "fast" notation stores its information internally. |