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, textRepFields 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 TypeMethodDescriptionvoidappendData(String arg) voiddeleteData(int offset, int count) booleangetData()intImplementation of DOM TEXT Interface *************************************************************DOM Level 3 stubsinthashCode()voidinsertData(int offset, String arg) booleanRetrieves whether thisTextobject represents a comment.booleanvoidreplaceData(int offset, int count, String arg) replaceWholeText(String content) voidvoidsetNodeValue(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, setValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValueMethods 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 thisTextobject represents a comment. -
getNodeValue
Implementation of DOM TEXT Interface *************************************************************- Specified by:
getNodeValuein interfaceNode- Overrides:
getNodeValuein 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 aDOMStringvariable on the implementation platform.
-
setNodeValue
Description 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 interfaceNode- Overrides:
setNodeValuein 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 aDOMStringvariable 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:
splitTextin interfaceText- Parameters:
offset-- Returns:
- Throws:
DOMException- Since:
- SAAJ 1.2
-
getData
- Specified by:
getDatain interfaceCharacterData- Throws:
DOMException- Since:
- SAAJ 1.2
-
setData
- Specified by:
setDatain interfaceCharacterData- Throws:
DOMException- Since:
- SAAJ 1.2
-
getLength
public int getLength()- Specified by:
getLengthin interfaceCharacterData- Returns:
- Since:
- SAAJ 1.2
-
substringData
- Specified by:
substringDatain interfaceCharacterData- Parameters:
offset-count-- Returns:
- Throws:
DOMException- Since:
- SAAJ 1.2
-
appendData
- Specified by:
appendDatain interfaceCharacterData- Parameters:
arg-- Throws:
DOMException- Since:
- SAAJ 1.2
-
insertData
- Specified by:
insertDatain interfaceCharacterData- Parameters:
offset-arg-- Throws:
DOMException- Since:
- SAAJ 1.2
-
replaceData
- Specified by:
replaceDatain interfaceCharacterData- Parameters:
offset-count-arg-- Throws:
DOMException- Since:
- SAAJ 1.2
-
deleteData
- Specified by:
deleteDatain interfaceCharacterData- Parameters:
offset-count-- Throws:
DOMException- Since:
- SAAJ 1.2
-
toString
-
equals
-
hashCode
public int hashCode() -
getWholeText
DOM Level 3 stubs- Specified by:
getWholeTextin interfaceText
-
isElementContentWhitespace
public boolean isElementContentWhitespace()- Specified by:
isElementContentWhitespacein interfaceText
-
replaceWholeText
- Specified by:
replaceWholeTextin interfaceText
-