Package org.apache.axis.message
Class Text
- java.lang.Object
-
- org.apache.axis.message.NodeImpl
-
- org.apache.axis.message.Text
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Node,Text,org.w3c.dom.CharacterData,org.w3c.dom.Node,org.w3c.dom.Text
- Direct Known Subclasses:
CDATAImpl,CommentImpl
public class Text extends NodeImpl implements Text
A representation of a node whose value is text. ATextobject 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendData(java.lang.String arg)voiddeleteData(int offset, int count)booleanequals(java.lang.Object obj)java.lang.StringgetData()intgetLength()java.lang.StringgetNodeValue()Implementation of DOM TEXT Interface *************************************************************java.lang.StringgetWholeText()DOM Level 3 stubsinthashCode()voidinsertData(int offset, java.lang.String arg)booleanisComment()Retrieves whether thisTextobject represents a comment.booleanisElementContentWhitespace()voidreplaceData(int offset, int count, java.lang.String arg)org.w3c.dom.TextreplaceWholeText(java.lang.String content)voidsetData(java.lang.String data)voidsetNodeValue(java.lang.String nodeValue)The value of this node, depending on its type; see the table above.org.w3c.dom.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 definedjava.lang.StringsubstringData(int offset, int count)java.lang.StringtoString()-
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, 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, reset, setDirty, setDirty, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setParent, setParentElement, setPrefix, setTextContent, setUserData, 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.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
-
-
-
-
Method Detail
-
isComment
public boolean isComment()
Retrieves whether thisTextobject represents a comment.
-
getNodeValue
public java.lang.String getNodeValue() throws org.w3c.dom.DOMExceptionImplementation of DOM TEXT Interface *************************************************************- Specified by:
getNodeValuein interfaceorg.w3c.dom.Node- Overrides:
getNodeValuein classNodeImpl- Throws:
org.w3c.dom.DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
-
setNodeValue
public void setNodeValue(java.lang.String nodeValue) throws org.w3c.dom.DOMExceptionDescription copied from class:NodeImplThe value of this node, depending on its type; see the table above. When it is defined to benull, setting it has no effect.- Specified by:
setNodeValuein interfaceorg.w3c.dom.Node- Overrides:
setNodeValuein classNodeImpl- Throws:
org.w3c.dom.DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
-
splitText
public org.w3c.dom.Text splitText(int offset) throws org.w3c.dom.DOMExceptionUse 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:
splitTextin interfaceorg.w3c.dom.Text- Parameters:
offset-- Returns:
- Throws:
org.w3c.dom.DOMException- Since:
- SAAJ 1.2
-
getData
public java.lang.String getData() throws org.w3c.dom.DOMException- Specified by:
getDatain interfaceorg.w3c.dom.CharacterData- Throws:
org.w3c.dom.DOMException- Since:
- SAAJ 1.2
-
setData
public void setData(java.lang.String data) throws org.w3c.dom.DOMException- Specified by:
setDatain interfaceorg.w3c.dom.CharacterData- Throws:
org.w3c.dom.DOMException- Since:
- SAAJ 1.2
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceorg.w3c.dom.CharacterData- Returns:
- Since:
- SAAJ 1.2
-
substringData
public java.lang.String substringData(int offset, int count) throws org.w3c.dom.DOMException- Specified by:
substringDatain interfaceorg.w3c.dom.CharacterData- Parameters:
offset-count-- Returns:
- Throws:
org.w3c.dom.DOMException- Since:
- SAAJ 1.2
-
appendData
public void appendData(java.lang.String arg) throws org.w3c.dom.DOMException- Specified by:
appendDatain interfaceorg.w3c.dom.CharacterData- Parameters:
arg-- Throws:
org.w3c.dom.DOMException- Since:
- SAAJ 1.2
-
insertData
public void insertData(int offset, java.lang.String arg) throws org.w3c.dom.DOMException- Specified by:
insertDatain interfaceorg.w3c.dom.CharacterData- Parameters:
offset-arg-- Throws:
org.w3c.dom.DOMException- Since:
- SAAJ 1.2
-
replaceData
public void replaceData(int offset, int count, java.lang.String arg) throws org.w3c.dom.DOMException- Specified by:
replaceDatain interfaceorg.w3c.dom.CharacterData- Parameters:
offset-count-arg-- Throws:
org.w3c.dom.DOMException- Since:
- SAAJ 1.2
-
deleteData
public void deleteData(int offset, int count) throws org.w3c.dom.DOMException- Specified by:
deleteDatain interfaceorg.w3c.dom.CharacterData- Parameters:
offset-count-- Throws:
org.w3c.dom.DOMException- Since:
- SAAJ 1.2
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getWholeText
public java.lang.String getWholeText()
DOM Level 3 stubs- Specified by:
getWholeTextin interfaceorg.w3c.dom.Text
-
isElementContentWhitespace
public boolean isElementContentWhitespace()
- Specified by:
isElementContentWhitespacein interfaceorg.w3c.dom.Text
-
replaceWholeText
public org.w3c.dom.Text replaceWholeText(java.lang.String content)
- Specified by:
replaceWholeTextin interfaceorg.w3c.dom.Text
-
-