Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Application Server XML Java API Reference 10g Release 2 (10.1.2) Part no. B12024-03 September 2004
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.xdb.dom
Class XDBCharData

    java.lang.Object
      |
      +--oracle.xdb.dom.XDBNode
            |
            +--oracle.xdb.dom.XDBCharData

All Implemented Interfaces:
  CharacterData, Node

Direct Known Subclasses:
  XDBComment, XDBText

public class XDBCharData
extends XDBNode
implements CharacterData

This class implements the W3C CharacterData interface

Field Summary

Fields inherited from class oracle.xdb.dom.XDBNode
`m_conn, m_owner, m_xobcstate`

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`

Method Summary
`void` | `appendData(java.lang.String appstring)` append the specified string to the char data
`void` | `deleteData(int offset, int count)` delete the specified substring string from the char data
`java.lang.String` | `getData()` Returns the char data
`int` | `getLength()` gets the length of the char data
`void` | `insertData(int offset, java.lang.String appstring)` insert the specified string into the char data
`void` | `replaceData(int offset, int count, java.lang.String repdata)` replace the specified substring string in the char data
`void` | `setData(java.lang.String data)` sets the char data
`java.lang.String` | `substringData(int offset, int count)` gets the specified substring of the char data

Methods inherited from class oracle.xdb.dom.XDBNode
`appendChild, cloneNode, close, equals, finalize, getAttributes, getChildNodes, getExpandedName, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeFromCState, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getQualifiedName, getSchemaNode, hasAttributes, hasChildNodes, hashCode, insertBefore, isClosed, isSupported, normalize, removeChild, replaceChild, setNodeValue, setNodeXob, setOwner, setPrefix, setXobCstate, toCState, toString, write`

Methods inherited from class java.lang.Object
`clone, getClass, notify, notifyAll, wait, wait, wait`

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`

Method Detail

### getData

    public java.lang.String getData()
                             throws DOMException

  Returns the char data
  Specified by:
    `getData` in interface `CharacterData`
  Returns:
    the character data
  Throws:
    `DOMException` - DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a `DOMString` variable on the implementation platform.

### setData

    public void setData(java.lang.String data)
                 throws DOMException

  sets the char data
  Specified by:
    `setData` in interface `CharacterData`
  Returns:
    void
    `DOMException`

### getLength

    public int getLength()
                  throws DOMException

  gets the length of the char data
  Specified by:
    `getLength` in interface `CharacterData`
  Returns:
    data len
    `DOMException`

### substringData

    public java.lang.String substringData(int offset,
                                          int count)
                                   throws DOMException

  gets the specified substring of the char data
  Specified by:
    `substringData` in interface `CharacterData`
  Returns:
    substring
  Throws:
    `DOMException` - INDEX_SIZE_ERR: Raised if the specified `offset` is negative or greater than the number of 16-bit units in `data`, or if the specified `count` is negative.
    DOMSTRING_SIZE_ERR: Raised if the specified range of text does not fit into a `DOMString`.

### appendData

    public void appendData(java.lang.String appstring)
                    throws DOMException

  append the specified string to the char data
  Specified by:
    `appendData` in interface `CharacterData`
  Returns:
    none
  Throws:
    `DOMException` - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

### insertData

    public void insertData(int offset,
                           java.lang.String appstring)
                    throws DOMException

  insert the specified string into the char data
  Specified by:
    `insertData` in interface `CharacterData`
  Returns:
    none
  Throws:
    `DOMException` - INDEX_SIZE_ERR: Raised if the specified `offset` is negative or greater than the number of 16-bit units in `data`.
    NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

### deleteData

    public void deleteData(int offset,
                           int count)
                    throws DOMException

  delete the specified substring string from the char data
  Specified by:
    `deleteData` in interface `CharacterData`
  Returns:
    none
  Throws:
    `DOMException` - INDEX_SIZE_ERR: Raised if the specified `offset` is negative or greater than the number of 16-bit units in `data`, or if the specified `count` is negative.
    NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

### replaceData

    public void replaceData(int offset,
                            int count,
                            java.lang.String repdata)
                     throws DOMException

  replace the specified substring string in the char data
  Specified by:
    `replaceData` in interface `CharacterData`
  Returns:
    none
  Throws:
    `DOMException` - INDEX_SIZE_ERR: Raised if the specified `offset` is negative or greater than the number of 16-bit units in `data`, or if the specified `count` is negative.
    NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Application Server XML Java API Reference 10g Release 2 (10.1.2) Part no. B12024-03 September 2004
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003, 2004, Oracle. All rights reserved.