public class Text extends NodeImpl implements Text
Text
object may represent text that is content or text
that is a comment._isDirty, attributes, children, document, log, name, namespaceURI, parent, prefix, textRep
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 and Description |
---|
Text() |
Text(CharacterData data) |
Text(String s) |
Modifier and Type | Method and Description |
---|---|
void |
appendData(String arg) |
void |
deleteData(int offset,
int count) |
boolean |
equals(Object obj) |
String |
getData() |
int |
getLength() |
String |
getNodeValue()
Implementation of DOM TEXT Interface
*************************************************************
|
int |
hashCode() |
void |
insertData(int offset,
String arg) |
boolean |
isComment()
Retrieves whether this
Text object
represents a comment. |
void |
replaceData(int offset,
int count,
String arg) |
void |
setData(String data) |
void |
setNodeValue(String nodeValue)
The value of this node, depending on its type; see the table above.
|
Text |
splitText(int offset)
Use the textRep, and convert it to org.apache.axis.Text
in order to keep the Axis SOAP strcture after operation
This work would be easier if constructor, Text(org.w3c.dom.Text)
is defined
|
String |
substringData(int offset,
int count) |
String |
toString() |
appendChild, cloneNode, convertAttrSAXtoDOM, detachNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, getValue, hasAttributes, hasChildNodes, initializeChildren, insertBefore, isDirty, isSupported, makeAttributesEditable, normalize, output, recycleNode, removeChild, replaceChild, reset, setDirty, setDirty, setOwnerDocument, setParent, setParentElement, setPrefix, setValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue
getWholeText, isElementContentWhitespace, replaceWholeText
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix, setTextContent, setUserData
public Text(CharacterData data)
public Text(String s)
public Text()
public boolean isComment()
Text
object
represents a comment.true
if this Text
object is
a comment; false
otherwisepublic String getNodeValue() throws DOMException
getNodeValue
in interface Node
getNodeValue
in class NodeImpl
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.public void setNodeValue(String nodeValue) throws DOMException
NodeImpl
null
, setting it has no effect.setNodeValue
in interface Node
setNodeValue
in class NodeImpl
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.public Text splitText(int offset) throws DOMException
splitText
in interface Text
offset
- DOMException
public String getData() throws DOMException
getData
in interface CharacterData
DOMException
public void setData(String data) throws DOMException
setData
in interface CharacterData
DOMException
public int getLength()
getLength
in interface CharacterData
public String substringData(int offset, int count) throws DOMException
substringData
in interface CharacterData
offset
- count
- DOMException
public void appendData(String arg) throws DOMException
appendData
in interface CharacterData
arg
- DOMException
public void insertData(int offset, String arg) throws DOMException
insertData
in interface CharacterData
offset
- arg
- DOMException
public void replaceData(int offset, int count, String arg) throws DOMException
replaceData
in interface CharacterData
offset
- count
- arg
- DOMException
public void deleteData(int offset, int count) throws DOMException
deleteData
in interface CharacterData
offset
- count
- DOMException
Copyright © The Apache Software Foundation. All Rights Reserved.