org.apache.axis.message
Class Text

java.lang.Object
  |
  +--org.apache.axis.message.MessageElement
        |
        +--org.apache.axis.message.Text
All Implemented Interfaces:
org.w3c.dom.CharacterData, org.w3c.dom.Element, org.w3c.dom.Node, Node, java.io.Serializable, SOAPElement, org.w3c.dom.Text, Text

public class Text
extends MessageElement
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)
See Also:
Serialized Form

Inner classes inherited from class org.apache.axis.message.MessageElement
MessageElement.QNameAttr
 
Fields inherited from class org.apache.axis.message.MessageElement
_isDirty, _isRoot, attributes, context, elementRep, encodingStyle, endEventIndex, href, id, log, message, name, namespaces, namespaceURI, parent, prefix, qNameAttrs, recorder, startContentsIndex, startEventIndex, textRep, typeQName
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
Text(java.lang.String s)
           
 
Method Summary
 void appendData(java.lang.String arg)
           
 void deleteData(int offset, int count)
           
 java.lang.String getData()
           
 int getLength()
           
 void insertData(int offset, java.lang.String arg)
           
 boolean isComment()
          Retrieves whether this Text object represents a comment.
 void replaceData(int offset, int count, java.lang.String arg)
           
 void setData(java.lang.String data)
           
 org.w3c.dom.Text splitText(int offset)
           
 java.lang.String substringData(int offset, int count)
           
 
Methods inherited from class org.apache.axis.message.MessageElement
addAttribute, addAttribute, addAttribute, addAttribute, addChild, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addMapping, addNamespaceDeclaration, addTextNode, appendChild, cloneNode, detachNode, getAllAttributes, getAsDocument, getAsDOM, getAsString, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributesEx, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildNodes, getChildren, getCompleteAttributes, getElementName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getEnvelope, getFirstChild, getFixupDeserializer, getHref, getID, getLastChild, getLocalName, getName, getNamespacePrefixes, getNamespaceURI, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getObjectValue, getObjectValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPrefix, getPreviousSibling, getQName, getRealElement, getRecorder, getTagName, getType, getValue, getValueAsType, getValueAsType, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, insertBefore, isDirty, isRoot, isSupported, makeAttributesEditable, normalize, output, outputImpl, publishContents, publishToHandler, recycleNode, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeChild, removeContents, removeNamespaceDeclaration, replaceChild, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setContentsIndex, setDirty, setEncodingStyle, setEndIndex, setEnvelope, setFixupDeserializer, setName, setNamespaceURI, setNodeValue, setNSMappings, setObjectValue, setParentElement, setPrefix, setQName, setRecorder, setType, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Constructor Detail

Text

public Text(java.lang.String s)
Method Detail

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

splitText

public org.w3c.dom.Text splitText(int offset)
                           throws org.w3c.dom.DOMException
Specified by:
splitText in interface org.w3c.dom.Text

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.CharacterData

deleteData

public void deleteData(int offset,
                       int count)
                throws org.w3c.dom.DOMException
Specified by:
deleteData in interface org.w3c.dom.CharacterData

getData

public java.lang.String getData()
                         throws org.w3c.dom.DOMException
Specified by:
getData in interface org.w3c.dom.CharacterData

substringData

public java.lang.String substringData(int offset,
                                      int count)
                               throws org.w3c.dom.DOMException
Specified by:
substringData in interface org.w3c.dom.CharacterData

replaceData

public void replaceData(int offset,
                        int count,
                        java.lang.String arg)
                 throws org.w3c.dom.DOMException
Specified by:
replaceData in interface org.w3c.dom.CharacterData

insertData

public void insertData(int offset,
                       java.lang.String arg)
                throws org.w3c.dom.DOMException
Specified by:
insertData in interface org.w3c.dom.CharacterData

appendData

public void appendData(java.lang.String arg)
                throws org.w3c.dom.DOMException
Specified by:
appendData in interface org.w3c.dom.CharacterData

setData

public void setData(java.lang.String data)
             throws org.w3c.dom.DOMException
Specified by:
setData in interface org.w3c.dom.CharacterData


Copyright © 2003 Apache Web Services Project. All Rights Reserved.