Package org.apache.axis.message
Class Text
java.lang.Object
org.apache.axis.message.NodeImpl
org.apache.axis.message.Text
- All Implemented Interfaces:
Serializable
,Cloneable
,Node
,Text
,CharacterData
,Node
,Text
- Direct Known Subclasses:
CDATAImpl
,CommentImpl
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:
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendData
(String arg) void
deleteData
(int offset, int count) boolean
getData()
int
Implementation of DOM TEXT Interface *************************************************************DOM Level 3 stubsint
hashCode()
void
insertData
(int offset, String arg) boolean
Retrieves whether thisText
object represents a comment.boolean
void
replaceData
(int offset, int count, String arg) replaceWholeText
(String content) void
void
setNodeValue
(String nodeValue) The value of this node, depending on its type; see the table above.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 definedsubstringData
(int offset, int count) toString()
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
-
Constructor Details
-
Text
-
Text
-
Text
public Text()
-
-
Method Details
-
isComment
public boolean isComment()Retrieves whether thisText
object represents a comment. -
getNodeValue
Implementation of DOM TEXT Interface *************************************************************- Specified by:
getNodeValue
in interfaceNode
- Overrides:
getNodeValue
in classNodeImpl
- Throws:
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.DOMException
- DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in aDOMString
variable on the implementation platform.
-
setNodeValue
Description copied from class:NodeImpl
The 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:
setNodeValue
in interfaceNode
- Overrides:
setNodeValue
in classNodeImpl
- Throws:
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.DOMException
- DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in aDOMString
variable on the implementation platform.
-
splitText
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 interfaceText
- Parameters:
offset
-- Returns:
- Throws:
DOMException
- Since:
- SAAJ 1.2
-
getData
- Specified by:
getData
in interfaceCharacterData
- Throws:
DOMException
- Since:
- SAAJ 1.2
-
setData
- Specified by:
setData
in interfaceCharacterData
- Throws:
DOMException
- Since:
- SAAJ 1.2
-
getLength
public int getLength()- Specified by:
getLength
in interfaceCharacterData
- Returns:
- Since:
- SAAJ 1.2
-
substringData
- Specified by:
substringData
in interfaceCharacterData
- Parameters:
offset
-count
-- Returns:
- Throws:
DOMException
- Since:
- SAAJ 1.2
-
appendData
- Specified by:
appendData
in interfaceCharacterData
- Parameters:
arg
-- Throws:
DOMException
- Since:
- SAAJ 1.2
-
insertData
- Specified by:
insertData
in interfaceCharacterData
- Parameters:
offset
-arg
-- Throws:
DOMException
- Since:
- SAAJ 1.2
-
replaceData
- Specified by:
replaceData
in interfaceCharacterData
- Parameters:
offset
-count
-arg
-- Throws:
DOMException
- Since:
- SAAJ 1.2
-
deleteData
- Specified by:
deleteData
in interfaceCharacterData
- Parameters:
offset
-count
-- Throws:
DOMException
- Since:
- SAAJ 1.2
-
toString
-
equals
-
hashCode
public int hashCode() -
getWholeText
DOM Level 3 stubs- Specified by:
getWholeText
in interfaceText
-
isElementContentWhitespace
public boolean isElementContentWhitespace()- Specified by:
isElementContentWhitespace
in interfaceText
-
replaceWholeText
- Specified by:
replaceWholeText
in interfaceText
-