com.sun.org.apache.xerces.internal.dom
public class: DeferredCDATASectionImpl [javadoc |
source]
java.lang.Object
com.sun.org.apache.xerces.internal.dom.NodeImpl
com.sun.org.apache.xerces.internal.dom.ChildNode
com.sun.org.apache.xerces.internal.dom.CharacterDataImpl
com.sun.org.apache.xerces.internal.dom.TextImpl
com.sun.org.apache.xerces.internal.dom.CDATASectionImpl
com.sun.org.apache.xerces.internal.dom.DeferredCDATASectionImpl
All Implemented Interfaces:
DeferredNode, CDATASection, Text, CharacterData, Cloneable, Node, EventTarget, Serializable, NodeList
XML provides the CDATA markup to allow a region of text in which
most of the XML delimiter recognition does not take place. This is
intended to ease the task of quoting XML fragments and other
programmatic information in a document's text without needing to
escape these special characters. It's primarily a convenience feature
for those who are hand-editing XML.
CDATASection is an Extended DOM feature, and is not used in HTML
contexts.
Within the DOM, CDATASections are treated essentially as Text
blocks. Their distinct type is retained in order to allow us to
properly recreate the XML syntax when we write them out.
Reminder: CDATA IS NOT A COMPLETELY GENERAL SOLUTION; it can't
quote its own end-of-block marking. If you need to write out a
CDATA that contains the ]]> sequence, it's your responsibility to
split that string over two successive CDATAs at that time.
CDATA does not participate in Element.normalize() processing.
- 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: |
DeferredCDATASectionImpl(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.TextImpl: |
|---|
|
getNodeName, getNodeType, getWholeText, insertTextContent, isElementContentWhitespace, isIgnorableWhitespace, removeData, replaceData, replaceWholeText, setIgnorableWhitespace, setValues, splitText |
| Methods from com.sun.org.apache.xerces.internal.dom.CharacterDataImpl: |
|---|
|
appendData, deleteData, getChildNodes, getData, getLength, getNodeValue, insertData, internalDeleteData, internalInsertData, replaceData, setData, setNodeValue, setNodeValueInternal, setNodeValueInternal, substringData |
| 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.DeferredCDATASectionImpl Detail: |
public int getNodeIndex() {
return fNodeIndex;
}
|
protected void synchronizeData() {
// no need to sync in the future
needsSyncData(false);
// fluff data
DeferredDocumentImpl ownerDocument =
(DeferredDocumentImpl) this.ownerDocument();
data = ownerDocument.getNodeValueString(fNodeIndex);
}
Synchronizes the data (name and value) for fast nodes. |