com.teamkonzept.dom4jb.dom
Class CharacterData
java.lang.Object
|
+--com.teamkonzept.dom4jb.dom.NodeList
|
+--com.teamkonzept.dom4jb.dom.Node
|
+--com.teamkonzept.dom4jb.dom.CharacterData
- All Implemented Interfaces:
- CharacterData, Node, NodeList
- Direct Known Subclasses:
- CDATA, Text
- public abstract class CharacterData
- extends Node
- implements CharacterData
Fields inherited from class com.teamkonzept.dom4jb.dom.Node |
document |
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 com.teamkonzept.dom4jb.dom.Node |
accept, appendChild, attach, cloneNode, getAttributes, getChildIndex, getChildNodes, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue |
Methods inherited from class com.teamkonzept.dom4jb.dom.NodeList |
add, clear, ensureCapacity, get, getParentNode, isEmpty, item, setIterator, setParentNode, size, trimToSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeType, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue |
CharacterData
public CharacterData(Document document)
- Creates new CharacterData
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interface Node
getPrefix
public String getPrefix()
- Description copied from class:
Node
- The namespace prefix of this node, or
null
if it is
unspecified.
Note that setting this attribute, when permitted, changes the
nodeName
attribute, which holds the qualified name, as
well as the tagName
and name
attributes of
the Element
and Attr
interfaces, when
applicable.
Note also that changing the prefix of an attribute that is known to
have a default value, does not make a new attribute with the default
value and the original prefix appear, since the
namespaceURI
and localName
do not change.
For nodes of any type other than ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.
- Specified by:
getPrefix
in interface Node
- Overrides:
getPrefix
in class Node
setPrefix
public void setPrefix(String prefix)
- The namespace prefix of this node, or
null
if it is
unspecified.
Note that setting this attribute, when permitted, changes the
nodeName
attribute, which holds the qualified name, as
well as the tagName
and name
attributes of
the Element
and Attr
interfaces, when
applicable.
Note also that changing the prefix of an attribute that is known to
have a default value, does not make a new attribute with the default
value and the original prefix appear, since the
namespaceURI
and localName
do not change.
For nodes of any type other than ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.
- Specified by:
setPrefix
in interface Node
- Overrides:
setPrefix
in class Node
- Since:
- DOM Level 2
getLocalName
public String getLocalName()
- Description copied from class:
Node
- Returns the local part of the qualified name of this node.
For nodes of any type other than ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.
- Specified by:
getLocalName
in interface Node
- Overrides:
getLocalName
in class Node
- See Also:
Node.getLocalName()
getNamespaceURI
public String getNamespaceURI()
- Description copied from class:
Node
- The namespace URI of this node, or
null
if it is
unspecified.
This is not a computed value that is the result of a namespace
lookup based on an examination of the namespace declarations in
scope. It is merely the namespace URI given at creation time.
For nodes of any type other than ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.Per
the Namespaces in XML Specification an attribute does not inherit
its namespace from the element it is attached to. If an attribute is
not explicitly given a namespace, it simply has no namespace.
- Specified by:
getNamespaceURI
in interface Node
- Overrides:
getNamespaceURI
in class Node
- See Also:
Node.getNamespaceURI()
getNodeValue
public String getNodeValue()
- Description copied from class:
Node
- The value of this node, depending on its type; see the table above.
When it is defined to be
null
, setting it has no effect.
- Specified by:
getNodeValue
in interface Node
- Overrides:
getNodeValue
in class Node
- See Also:
Node.getNodeValue()
getLength
public int getLength()
- Description copied from class:
NodeList
- Returns the number of elements in this list.
- Specified by:
getLength
in interface CharacterData
- Overrides:
getLength
in class NodeList
- Returns:
- the number of elements in this list.
- See Also:
NodeList.getLength()
setData
public void setData(String data)
- Specified by:
setData
in interface CharacterData
- See Also:
CharacterData.setData(String)
substringData
public String substringData(int offset,
int count)
- Specified by:
substringData
in interface CharacterData
- See Also:
CharacterData.substringData(int, int)
appendData
public void appendData(String arg)
- Specified by:
appendData
in interface CharacterData
- See Also:
CharacterData.appendData(String)
deleteData
public void deleteData(int offset,
int count)
- Specified by:
deleteData
in interface CharacterData
- See Also:
CharacterData.deleteData(int, int)
insertData
public void insertData(int offset,
String arg)
- Specified by:
insertData
in interface CharacterData
- See Also:
CharacterData.insertData(int, String)
replaceData
public void replaceData(int offset,
int count,
String arg)
- Specified by:
replaceData
in interface CharacterData
- See Also:
CharacterData.replaceData(int, int, String)
Copyright © 2001-2003 Team-Konzept GmbH & CO KG. All Rights Reserved.