org.ozoneDB.xml.dom
Class TextImpl

java.lang.Object
  extended byorg.ozoneDB.OzoneObject
      extended byorg.ozoneDB.xml.dom.NodeImpl
          extended byorg.ozoneDB.xml.dom.CharacterDataImpl
              extended byorg.ozoneDB.xml.dom.TextImpl
All Implemented Interfaces:
org.w3c.dom.CharacterData, CharacterDataProxy, java.io.Externalizable, org.w3c.dom.Node, NodeProxy, org.ozoneDB.OzoneCompatible, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote, java.io.Serializable, org.w3c.dom.Text, TextProxy
Direct Known Subclasses:
CDATASectionImpl

public class TextImpl
extends CharacterDataImpl
implements TextProxy

Implements the textual content (termed character data) of a Element or Attr. If there is no markup inside an element's content, the text is contained in a single object implementing the Text interface; if there is markup, it is parsed into a list of elements and Text nodes that form the list of children of the element.

Notes:

  • Node type is Node.TEXT_NODE
  • Node does not support childern
  • Node name is always "#text"
  • One of two nodes that may be added to an attribute

    Version:
    $Revision: 1.2 $ $Date: 2003/11/20 23:18:42 $
    Author:
    Assaf Arkin
    See Also:
    Text, CharacterDataImpl, Serialized Form

    Field Summary
     
    Fields inherited from class org.ozoneDB.xml.dom.NodeImpl
    ATTLIST_DECL_NODE, ELEMENT_DECL_NODE, PARAM_ENTITY_NODE
     
    Fields inherited from interface org.w3c.dom.Node
    ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
     
    Constructor Summary
    TextImpl()
               
     
    Method Summary
     java.lang.Object clone()
               
     org.w3c.dom.Node cloneNode(boolean deep)
               
     short getNodeType()
              Abstract method must be implemented by each node class.
     void init(DocumentProxy owner, java.lang.String text)
               
     org.w3c.dom.Text splitText(int offset)
               
     java.lang.String toString()
               
     
    Methods inherited from class org.ozoneDB.xml.dom.CharacterDataImpl
    appendData, deleteData, getData, getLength, init, insertData, replaceData, setData, substringData, supportsChildern
     
    Methods inherited from class org.ozoneDB.xml.dom.NodeImpl
    appendChild, castNewChild, castOldChild, cloneInto, getAttributes, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, init, insertBefore, isReadOnly, isSupported, normalize, notifyIterators, readExternal, removeChild, replaceChild, setNextSibling, setNodeName, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setReadOnly, supports, writeExternal
     
    Methods inherited from class org.ozoneDB.OzoneObject
    container, database, deleteRecursive, equals, getHandle, getObjectID, handle, hashCode, onActivate, onCreate, onDelete, onPassivate, requireWriteLocking, self, setContainer, toXML
     
    Methods inherited from class java.lang.Object
    finalize, getClass, notify, notifyAll, wait, wait, wait
     
    Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
    getObjectID
     
    Methods inherited from interface org.w3c.dom.CharacterData
    appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
     
    Methods inherited from interface org.w3c.dom.Node
    appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
     
    Methods inherited from interface org.ozoneDB.xml.dom.CharacterDataProxy
    init
     
    Methods inherited from interface org.ozoneDB.xml.dom.NodeProxy
    cloneInto, getChild, getChildCount, getChildNodes, init, isReadOnly, setNextSibling, setNodeName, setOwnerDocument, setParentNode, setPreviousSibling, setReadOnly
     

    Constructor Detail

    TextImpl

    public TextImpl()
    Method Detail

    getNodeType

    public short getNodeType()
    Description copied from class: NodeImpl
    Abstract method must be implemented by each node class.

    Specified by:
    getNodeType in interface org.w3c.dom.Node
    Specified by:
    getNodeType in class NodeImpl
    See Also:
    Node.getNodeType()

    splitText

    public final org.w3c.dom.Text splitText(int offset)
                                     throws org.w3c.dom.DOMException
    Specified by:
    splitText in interface org.w3c.dom.Text
    Throws:
    org.w3c.dom.DOMException

    toString

    public java.lang.String toString()

    clone

    public java.lang.Object clone()

    cloneNode

    public org.w3c.dom.Node cloneNode(boolean deep)
    Specified by:
    cloneNode in interface org.w3c.dom.Node

    init

    public void init(DocumentProxy owner,
                     java.lang.String text)
    Specified by:
    init in interface TextProxy


    Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.