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, textRepATTRIBUTE_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, setValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitdetachNode, getParentElement, getValue, recycleNode, setParentElement, setValuegetWholeText, isElementContentWhitespace, replaceWholeTextappendChild, 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, setUserDatapublic 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 NodegetNodeValue in class NodeImplDOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.public void setNodeValue(String nodeValue) throws DOMException
NodeImplnull, setting it has no effect.setNodeValue in interface NodesetNodeValue in class NodeImplDOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.public Text splitText(int offset) throws DOMException
splitText in interface Textoffset - DOMExceptionpublic String getData() throws DOMException
getData in interface CharacterDataDOMExceptionpublic void setData(String data) throws DOMException
setData in interface CharacterDataDOMExceptionpublic int getLength()
getLength in interface CharacterDatapublic String substringData(int offset, int count) throws DOMException
substringData in interface CharacterDataoffset - count - DOMExceptionpublic void appendData(String arg) throws DOMException
appendData in interface CharacterDataarg - DOMExceptionpublic void insertData(int offset,
String arg)
throws DOMException
insertData in interface CharacterDataoffset - arg - DOMExceptionpublic void replaceData(int offset,
int count,
String arg)
throws DOMException
replaceData in interface CharacterDataoffset - count - arg - DOMExceptionpublic void deleteData(int offset,
int count)
throws DOMException
deleteData in interface CharacterDataoffset - count - DOMExceptionCopyright © The Apache Software Foundation. All Rights Reserved.