org.apache.axis.message
Class Text

java.lang.Object
  extended by org.apache.axis.message.NodeImpl
      extended by org.apache.axis.message.Text
All Implemented Interfaces:
Serializable, Cloneable, CharacterData, Node, Text
Direct Known 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.

Author:
Davanum Srinivas (dims@yahoo.com), Heejune Ahn (cityboy@tmax.co.kr)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.axis.message.NodeImpl
_isDirty, attributes, children, document, log, name, namespaceURI, parent, prefix, textRep
 
Fields inherited from interface org.w3c.dom.Node
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 Summary
Text()
           
Text(CharacterData data)
           
Text(String s)
           
 
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 *************************************************************
 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()
           
 
Methods inherited from class org.apache.axis.message.NodeImpl
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue
 
Methods inherited from interface org.w3c.dom.Text
getWholeText, isElementContentWhitespace, replaceWholeText
 
Methods inherited from interface org.w3c.dom.Node
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
 

Constructor Detail

Text

public Text(CharacterData data)

Text

public Text(String s)

Text

public Text()
Method Detail

isComment

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

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

getNodeValue

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

Specified by:
getNodeValue in interface Node
Overrides:
getNodeValue in class NodeImpl
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.

setNodeValue

public void setNodeValue(String nodeValue)
                  throws DOMException
Description copied from class: NodeImpl
The value of this node, depending on its type; see the table above. When it is defined to be null, setting it has no effect.

Specified by:
setNodeValue in interface Node
Overrides:
setNodeValue in class NodeImpl
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.

splitText

public 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

Specified by:
splitText in interface Text
Parameters:
offset -
Returns:
Throws:
DOMException
Since:
SAAJ 1.2

getData

public String getData()
               throws DOMException
Specified by:
getData in interface CharacterData
Throws:
DOMException
Since:
SAAJ 1.2

setData

public void setData(String data)
             throws DOMException
Specified by:
setData in interface CharacterData
Throws:
DOMException
Since:
SAAJ 1.2

getLength

public int getLength()
Specified by:
getLength in interface CharacterData
Returns:
Since:
SAAJ 1.2

substringData

public String substringData(int offset,
                            int count)
                     throws DOMException
Specified by:
substringData in interface CharacterData
Parameters:
offset -
count -
Returns:
Throws:
DOMException
Since:
SAAJ 1.2

appendData

public void appendData(String arg)
                throws DOMException
Specified by:
appendData in interface CharacterData
Parameters:
arg -
Throws:
DOMException
Since:
SAAJ 1.2

insertData

public void insertData(int offset,
                       String arg)
                throws DOMException
Specified by:
insertData in interface CharacterData
Parameters:
offset -
arg -
Throws:
DOMException
Since:
SAAJ 1.2

replaceData

public void replaceData(int offset,
                        int count,
                        String arg)
                 throws DOMException
Specified by:
replaceData in interface CharacterData
Parameters:
offset -
count -
arg -
Throws:
DOMException
Since:
SAAJ 1.2

deleteData

public void deleteData(int offset,
                       int count)
                throws DOMException
Specified by:
deleteData in interface CharacterData
Parameters:
offset -
count -
Throws:
DOMException
Since:
SAAJ 1.2

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © The Apache Software Foundation. All Rights Reserved.