org.apache.axis.message
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(org.w3c.dom.CharacterData data) |
Text(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
void |
appendData(java.lang.String arg) |
void |
deleteData(int offset,
int count) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getData() |
int |
getLength() |
java.lang.String |
getNodeValue()
Implementation of DOM TEXT Interface
*************************************************************
|
java.lang.String |
getWholeText()
DOM Level 3 stubs
|
int |
hashCode() |
void |
insertData(int offset,
java.lang.String arg) |
boolean |
isComment()
Retrieves whether this
Text object
represents a comment. |
boolean |
isElementContentWhitespace() |
void |
replaceData(int offset,
int count,
java.lang.String arg) |
org.w3c.dom.Text |
replaceWholeText(java.lang.String content) |
void |
setData(java.lang.String data) |
void |
setNodeValue(java.lang.String nodeValue)
The value of this node, depending on its type; see the table above.
|
org.w3c.dom.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
|
java.lang.String |
substringData(int offset,
int count) |
java.lang.String |
toString() |
appendChild, cloneNode, compareDocumentPosition, convertAttrSAXtoDOM, detachNode, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, getSchemaTypeInfo, getTextContent, getUserData, getValue, hasAttributes, hasChildNodes, initializeChildren, insertBefore, isDefaultNamespace, isDirty, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, makeAttributesEditable, normalize, output, recycleNode, removeChild, replaceChild, setDirty, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setParent, setParentElement, setPrefix, setTextContent, setUserData, setValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue
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(org.w3c.dom.CharacterData data)
public Text(java.lang.String s)
public Text()
public boolean isComment()
Text
object
represents a comment.true
if this Text
object is
a comment; false
otherwisepublic java.lang.String getNodeValue() throws org.w3c.dom.DOMException
getNodeValue
in interface org.w3c.dom.Node
getNodeValue
in class NodeImpl
org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.public void setNodeValue(java.lang.String nodeValue) throws org.w3c.dom.DOMException
NodeImpl
null
, setting it has no effect.setNodeValue
in interface org.w3c.dom.Node
setNodeValue
in class NodeImpl
org.w3c.dom.DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.public org.w3c.dom.Text splitText(int offset) throws org.w3c.dom.DOMException
splitText
in interface org.w3c.dom.Text
offset
- org.w3c.dom.DOMException
public java.lang.String getData() throws org.w3c.dom.DOMException
getData
in interface org.w3c.dom.CharacterData
org.w3c.dom.DOMException
public void setData(java.lang.String data) throws org.w3c.dom.DOMException
setData
in interface org.w3c.dom.CharacterData
org.w3c.dom.DOMException
public int getLength()
getLength
in interface org.w3c.dom.CharacterData
public java.lang.String substringData(int offset, int count) throws org.w3c.dom.DOMException
substringData
in interface org.w3c.dom.CharacterData
offset
- count
- org.w3c.dom.DOMException
public void appendData(java.lang.String arg) throws org.w3c.dom.DOMException
appendData
in interface org.w3c.dom.CharacterData
arg
- org.w3c.dom.DOMException
public void insertData(int offset, java.lang.String arg) throws org.w3c.dom.DOMException
insertData
in interface org.w3c.dom.CharacterData
offset
- arg
- org.w3c.dom.DOMException
public void replaceData(int offset, int count, java.lang.String arg) throws org.w3c.dom.DOMException
replaceData
in interface org.w3c.dom.CharacterData
offset
- count
- arg
- org.w3c.dom.DOMException
public void deleteData(int offset, int count) throws org.w3c.dom.DOMException
deleteData
in interface org.w3c.dom.CharacterData
offset
- count
- org.w3c.dom.DOMException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getWholeText()
getWholeText
in interface org.w3c.dom.Text
public boolean isElementContentWhitespace()
isElementContentWhitespace
in interface org.w3c.dom.Text
public org.w3c.dom.Text replaceWholeText(java.lang.String content)
replaceWholeText
in interface org.w3c.dom.Text
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.