org.apache.axis.message

Class Text

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.

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

Constructor Summary
Text(CharacterData data)
Text(String s)
Text()
Method Summary
voidappendData(String arg)
voiddeleteData(int offset, int count)
booleanequals(Object obj)
StringgetData()
intgetLength()
StringgetNodeValue()
Implementation of DOM TEXT Interface *************************************************************
StringgetWholeText()
DOM Level 3 stubs
inthashCode()
voidinsertData(int offset, String arg)
booleanisComment()
Retrieves whether this Text object represents a comment.
booleanisElementContentWhitespace()
voidreplaceData(int offset, int count, String arg)
TextreplaceWholeText(String content)
voidsetData(String data)
voidsetNodeValue(String nodeValue)
TextsplitText(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
StringsubstringData(int offset, int count)
StringtoString()

Constructor Detail

Text

public Text(CharacterData data)

Text

public Text(String s)

Text

public Text()

Method Detail

appendData

public void appendData(String arg)

Parameters: arg

Throws: DOMException

Since: SAAJ 1.2

deleteData

public void deleteData(int offset, int count)

Parameters: offset count

Throws: DOMException

Since: SAAJ 1.2

equals

public boolean equals(Object obj)

getData

public String getData()

Since: SAAJ 1.2

getLength

public int getLength()

Returns:

Since: SAAJ 1.2

getNodeValue

public String getNodeValue()
Implementation of DOM TEXT Interface *************************************************************

getWholeText

public String getWholeText()
DOM Level 3 stubs

hashCode

public int hashCode()

insertData

public void insertData(int offset, String arg)

Parameters: offset arg

Throws: DOMException

Since: SAAJ 1.2

isComment

public boolean isComment()
Retrieves whether this Text object represents a comment.

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)

Parameters: offset count arg

Throws: DOMException

Since: SAAJ 1.2

replaceWholeText

public Text replaceWholeText(String content)

setData

public void setData(String data)

Since: SAAJ 1.2

setNodeValue

public void setNodeValue(String nodeValue)

splitText

public 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

Parameters: offset

Returns:

Throws: DOMException

Since: SAAJ 1.2

substringData

public String substringData(int offset, int count)

Parameters: offset count

Returns:

Throws: DOMException

Since: SAAJ 1.2

toString

public String toString()
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.