org.ozoneDB.xml.dom
Class CharacterDataImpl
java.lang.Object
org.ozoneDB.OzoneObject
org.ozoneDB.xml.dom.NodeImpl
org.ozoneDB.xml.dom.CharacterDataImpl
- 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
- Direct Known Subclasses:
- CommentImpl, TextImpl
- public abstract class CharacterDataImpl
- extends NodeImpl
- implements CharacterDataProxy
Abstract data class has methods for interacting directly with data contained
in it. Derived classes Text
, Comment
and CDATASection
provide full implementation of this class.
The initial data is guaranteed to be a zero length string, not null. Setting
the data to null will always return an empty string.
Notes:
- Node does not support childern
- Version:
- $Revision: 1.1 $ $Date: 2003/11/02 17:26:14 $
- Author:
- Assaf Arkin
- See Also:
CharacterData
,
NodeImpl
,
Serialized Form
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 |
Methods inherited from class org.ozoneDB.xml.dom.NodeImpl |
appendChild, castNewChild, castOldChild, cloneInto, getAttributes, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, 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, toString, toXML |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy |
getObjectID |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.ozoneDB.xml.dom.NodeProxy |
cloneInto, getChild, getChildCount, getChildNodes, init, isReadOnly, setNextSibling, setNodeName, setOwnerDocument, setParentNode, setPreviousSibling, setReadOnly |
CharacterDataImpl
protected CharacterDataImpl(DocumentImpl owner,
java.lang.String name,
java.lang.String value)
- Constructor for derived classes.
- Parameters:
owner
- The owner of this documentname
- The name of this node typevalue
- Initial value or empty string
CharacterDataImpl
public CharacterDataImpl()
getData
public final java.lang.String getData()
- Specified by:
getData
in interface org.w3c.dom.CharacterData
setData
public final void setData(java.lang.String value)
throws org.w3c.dom.DOMException
- Specified by:
setData
in interface org.w3c.dom.CharacterData
- Throws:
org.w3c.dom.DOMException
getLength
public final int getLength()
- Specified by:
getLength
in interface org.w3c.dom.CharacterData
substringData
public final java.lang.String substringData(int start,
int count)
throws org.w3c.dom.DOMException
- Specified by:
substringData
in interface org.w3c.dom.CharacterData
- Throws:
org.w3c.dom.DOMException
appendData
public final void appendData(java.lang.String value)
- Specified by:
appendData
in interface org.w3c.dom.CharacterData
insertData
public final void insertData(int offset,
java.lang.String value)
throws org.w3c.dom.DOMException
- Specified by:
insertData
in interface org.w3c.dom.CharacterData
- Throws:
org.w3c.dom.DOMException
deleteData
public final void deleteData(int offset,
int count)
throws org.w3c.dom.DOMException
- Specified by:
deleteData
in interface org.w3c.dom.CharacterData
- Throws:
org.w3c.dom.DOMException
replaceData
public final void replaceData(int offset,
int count,
java.lang.String value)
throws org.w3c.dom.DOMException
- Specified by:
replaceData
in interface org.w3c.dom.CharacterData
- Throws:
org.w3c.dom.DOMException
supportsChildern
protected final boolean supportsChildern()
- Returns:
- True if childern supported by this node type
init
public void init(DocumentProxy owner,
java.lang.String name,
java.lang.String value)
- Specified by:
init
in interface CharacterDataProxy
Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.