|
EAF 7.4 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.xml.NodeImpl
org.enhydra.xml.CharacterDataImpl
public class CharacterDataImpl
Field Summary |
---|
Fields inherited from class org.enhydra.xml.NodeImpl |
---|
firstChild, lastChild, nextSibling, nodeName, nodeValue, numChildren, ownerDocument, parent, previousSibling, type |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
CharacterDataImpl()
Constructs an empty CharacterDataImpl . |
|
CharacterDataImpl(org.w3c.dom.Node node)
Constructs a CharacterDataImpl from the
given node as Node . |
Method Summary | |
---|---|
void |
appendData(java.lang.String arg)
Appends data to the node's value. |
void |
deleteData(int offset,
int count)
Deletes characters from the node's value string. |
java.lang.String |
getData()
Returns node value. |
java.lang.String |
getNamespaceURI()
Returns the namespace of the node. |
void |
insertData(int offset,
java.lang.String arg)
Inserts substring into node's value string. |
void |
replaceData(int offset,
int count,
java.lang.String arg)
Replaces characters in the node's value string. |
void |
setData(java.lang.String data)
Sets the new value of this node. |
java.lang.String |
substringData(int offset,
int count)
Returns the substring from the node's value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.CharacterData |
---|
getLength |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Constructor Detail |
---|
public CharacterDataImpl()
CharacterDataImpl
.
public CharacterDataImpl(org.w3c.dom.Node node)
CharacterDataImpl
from the
given node as Node
.
node,
- as a Node
.Method Detail |
---|
public java.lang.String getData() throws org.w3c.dom.DOMException
getData
in interface org.w3c.dom.CharacterData
String
.
org.w3c.dom.DOMException
CharacterData.getData().
public void setData(java.lang.String data) throws org.w3c.dom.DOMException
setData
in interface org.w3c.dom.CharacterData
data
- the new data
org.w3c.dom.DOMException
CharacterData.setData(String).
public java.lang.String substringData(int offset, int count) throws org.w3c.dom.DOMException
substringData
in interface org.w3c.dom.CharacterData
offset
- the begin index of the substring.count
- the number of characters.
org.w3c.dom.DOMException
CharacterData.substringData(int, int).
public void appendData(java.lang.String arg)
appendData
in interface org.w3c.dom.CharacterData
arg
- the data to append to the node's value.CharacterData.appendData(String).
public void insertData(int offset, java.lang.String arg) throws org.w3c.dom.DOMException
insertData
in interface org.w3c.dom.CharacterData
offset
- the begin index of the substring.arg
- the String
to insert.
org.w3c.dom.DOMException
CharacterData.insertData(int, String).
public void deleteData(int offset, int count) throws org.w3c.dom.DOMException
deleteData
in interface org.w3c.dom.CharacterData
offset
- the begin index of the substring.count
- the number of characters.
org.w3c.dom.DOMException
CharacterData.deleteData(int, int).
public void replaceData(int offset, int count, java.lang.String arg) throws org.w3c.dom.DOMException
replaceData
in interface org.w3c.dom.CharacterData
offset
- the begin index of the substring.count
- the number of characters.arg
- the String
to insert.
org.w3c.dom.DOMException
CharacterData.replaceData(int, int, String).
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface org.w3c.dom.Node
getNamespaceURI
in class NodeImpl
Node.getNamespaceURI().
|
EAF 7.4 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |