org.apache.axis.message

Class Text

Implemented Interfaces:
Cloneable, Node, Serializable, Text
Known Direct Subclasses:
CDATAImpl, CommentImpl

public class Text
extends NodeImpl
implements Text

A representation of a node whose value is text. A Text object may represent text that is content or text that is a comment.

Authors:
Davanum Srinivas (dims@yahoo.com)
Heejune Ahn (cityboy@tmax.co.kr)

Field Summary

Fields inherited from class org.apache.axis.message.NodeImpl

_isDirty, attributes, children, document, log, name, namespaceURI, parent, prefix, textRep

Constructor Summary

Text()
Text(String s)
Text(org.w3c.dom.CharacterData data)

Method Summary

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 *************************************************************
String
getWholeText()
DOM Level 3 stubs
int
hashCode()
void
insertData(int offset, String arg)
boolean
isComment()
Retrieves whether this Text object represents a comment.
boolean
isElementContentWhitespace()
void
replaceData(int offset, int count, String arg)
org.w3c.dom.Text
replaceWholeText(String content)
void
setData(String data)
void
setNodeValue(String nodeValue)
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
String
substringData(int offset, int count)
String
toString()

Methods inherited from class org.apache.axis.message.NodeImpl

appendChild, cloneNode, compareDocumentPosition, convertAttrSAXtoDOM, detachNode, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, 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, setIdAttributeNS, setIdAttributeNode, setNodeValue, setOwnerDocument, setParent, setParentElement, setPrefix, setTextContent, setUserData, setValue

Constructor Details

Text

public Text()


Text

public Text(String s)


Text

public Text(org.w3c.dom.CharacterData data)

Method Details

appendData

public void appendData(String arg)
            throws DOMException

Parameters:
arg -

Since:
SAAJ 1.2


deleteData

public void deleteData(int offset,
                       int count)
            throws DOMException

Parameters:
offset -
count -

Since:
SAAJ 1.2


equals

public boolean equals(Object obj)


getData

public String getData()
            throws DOMException

Since:
SAAJ 1.2


getLength

public int getLength()

Returns:

Since:
SAAJ 1.2


getNodeValue

public String getNodeValue()
            throws DOMException
Implementation of DOM TEXT Interface *************************************************************
Overrides:
getNodeValue in interface NodeImpl


getWholeText

public String getWholeText()
DOM Level 3 stubs


hashCode

public int hashCode()


insertData

public void insertData(int offset,
                       String arg)
            throws DOMException

Parameters:
offset -
arg -

Since:
SAAJ 1.2


isComment

public boolean isComment()
Retrieves whether this Text object represents a comment.
Specified by:
isComment in interface Text

Returns:
true if this Text object is a comment; false otherwise


isElementContentWhitespace

public boolean isElementContentWhitespace()


replaceData

public void replaceData(int offset,
                        int count,
                        String arg)
            throws DOMException

Parameters:
offset -
count -
arg -

Since:
SAAJ 1.2


replaceWholeText

public org.w3c.dom.Text replaceWholeText(String content)


setData

public void setData(String data)
            throws DOMException

Since:
SAAJ 1.2


setNodeValue

public void setNodeValue(String nodeValue)
            throws DOMException
Overrides:
setNodeValue in interface NodeImpl


splitText

public org.w3c.dom.Text splitText(int offset)
            throws DOMException
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

Parameters:
offset -

Returns:

Since:
SAAJ 1.2


substringData

public String substringData(int offset,
                            int count)
            throws DOMException

Parameters:
offset -
count -

Returns:

Since:
SAAJ 1.2


toString

public String toString()


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.