org.apache.axis2.saaj
Class TextImpl

java.lang.Object
  extended byorg.apache.axis2.saaj.NodeImpl
      extended byorg.apache.axis2.saaj.TextImpl
All Implemented Interfaces:
org.w3c.dom.CharacterData, org.w3c.dom.Node, javax.xml.soap.Node, org.w3c.dom.Text, javax.xml.soap.Text

public class TextImpl
extends NodeImpl
implements javax.xml.soap.Text


Field Summary
 
Fields inherited from class org.apache.axis2.saaj.NodeImpl
document, omNode
 
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
TextImpl(org.w3c.dom.CharacterData data)
           
TextImpl(OMText omText)
           
TextImpl(SOAPElementImpl parent, java.lang.String s)
           
TextImpl(java.lang.String s)
           
 
Method Summary
 void appendData(java.lang.String arg)
           
 void deleteData(int offset, int count)
           
 java.lang.String getData()
           
 int getLength()
           
 javax.xml.soap.SOAPElement getParentElement()
          Returns the parent element of this Node object.
 java.lang.String getValue()
          Returns the the value of the immediate child of this Node object if a child exists and its value is text.
 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 arg)
           
 void setParentElement(javax.xml.soap.SOAPElement parent)
          Sets the parent of this Node object to the given SOAPElement object.
 org.w3c.dom.Text splitText(int offset)
          Implementation of DOM TEXT Interface *************************************************************
 java.lang.String substringData(int offset, int count)
           
 
Methods inherited from class org.apache.axis2.saaj.NodeImpl
appendChild, cloneNode, detachNode, equals, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOMNode, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, recycleNode, removeChild, replaceChild, setNodeValue, setOwnerDocument, setPrefix, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.soap.Node
detachNode, recycleNode, 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

TextImpl

public TextImpl(java.lang.String s)

TextImpl

public TextImpl(SOAPElementImpl parent,
                java.lang.String s)
         throws javax.xml.soap.SOAPException

TextImpl

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

TextImpl

public TextImpl(OMText omText)
Method Detail

getParentElement

public javax.xml.soap.SOAPElement getParentElement()
Description copied from interface: javax.xml.soap.Node
Returns the parent element of this Node object. This method can throw an UnsupportedOperationException if the tree is not kept in memory.

Specified by:
getParentElement in interface javax.xml.soap.Node
Overrides:
getParentElement in class NodeImpl
See Also:
Node.getParentElement()

setParentElement

public void setParentElement(javax.xml.soap.SOAPElement parent)
                      throws javax.xml.soap.SOAPException
Description copied from interface: javax.xml.soap.Node
Sets the parent of this Node object to the given SOAPElement object.

Specified by:
setParentElement in interface javax.xml.soap.Node
Overrides:
setParentElement in class NodeImpl
Parameters:
parent -
Throws:
javax.xml.soap.SOAPException
See Also:
Node.setParentElement(javax.xml.soap.SOAPElement)

getValue

public java.lang.String getValue()
Description copied from interface: javax.xml.soap.Node
Returns the the value of the immediate child of this Node object if a child exists and its value is text.

Specified by:
getValue in interface javax.xml.soap.Node
Overrides:
getValue in class NodeImpl
See Also:
Node.getValue()

isComment

public boolean isComment()
Description copied from interface: javax.xml.soap.Text
Retrieves whether this Text object represents a comment.

Specified by:
isComment in interface javax.xml.soap.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
Implementation of DOM TEXT Interface *************************************************************

Specified by:
splitText in interface org.w3c.dom.Text
Throws:
org.w3c.dom.DOMException

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
Throws:
org.w3c.dom.DOMException

getData

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

substringData

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

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
Throws:
org.w3c.dom.DOMException

insertData

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

appendData

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

setData

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