Save This Page
Home » openjdk-7 » com.sun.org.apache.xerces.internal » dom » [javadoc | source]
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.

Field Summary
static final  long serialVersionUID    Serialization version. 
protected transient  int fNodeIndex    Node index. 
Fields inherited from com.sun.org.apache.xerces.internal.dom.CDATASectionImpl:
serialVersionUID
Fields inherited from com.sun.org.apache.xerces.internal.dom.TextImpl:
serialVersionUID
Fields inherited from com.sun.org.apache.xerces.internal.dom.CharacterDataImpl:
serialVersionUID,  data
Fields inherited from com.sun.org.apache.xerces.internal.dom.ChildNode:
serialVersionUID,  fBufferStr,  previousSibling,  nextSibling
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) 
    This is the deferred constructor. Only the fNodeIndex is given here. All other data, can be requested from the ownerDocument via the index.
Method from com.sun.org.apache.xerces.internal.dom.DeferredCDATASectionImpl Summary:
getNodeIndex,   synchronizeData
Methods from com.sun.org.apache.xerces.internal.dom.CDATASectionImpl:
getNodeName,   getNodeType
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.ChildNode:
cloneNode,   getNextSibling,   getParentNode,   getPreviousSibling,   parentNode,   previousSibling
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
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.org.apache.xerces.internal.dom.DeferredCDATASectionImpl Detail:
 public int getNodeIndex() 
    Returns the node index.
 protected  void synchronizeData() 
    Synchronizes the data (name and value) for fast nodes.