Module com.sun.xml.messaging.saaj
Class TextImpl<T extends CharacterData>
java.lang.Object
com.sun.xml.messaging.saaj.soap.impl.TextImpl<T>
- Type Parameters:
T- node type
- All Implemented Interfaces:
Node,Text,CharacterData,Node,Text
- Direct Known Subclasses:
CDATAImpl,SOAPCommentImpl,SOAPTextImpl
public abstract class TextImpl<T extends CharacterData>
extends Object
implements Text, CharacterData
-
Field Summary
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
ConstructorsModifierConstructorDescriptionprotectedTextImpl(SOAPDocumentImpl ownerDoc, String text) protectedTextImpl(SOAPDocumentImpl ownerDoc, CharacterData data) -
Method Summary
Modifier and TypeMethodDescriptionappendChild(Node newChild) voidappendData(String arg) cloneNode(boolean deep) shortcompareDocumentPosition(Node other) protected abstract TcreateN(SOAPDocumentImpl ownerDoc, String text) protected abstract TcreateN(SOAPDocumentImpl ownerDoc, CharacterData data) voiddeleteData(int offset, int count) voidRemoves thisNodeobject from the tree.doClone()getData()getFeature(String feature, String version) intshortReturns the parent element of thisNodeobject.getUserData(String key) getValue()Returns the value of this node if this is aTextnode or the value of the immediate child of this node otherwise.booleanbooleaninsertBefore(Node newChild, Node refChild) voidinsertData(int offset, String arg) booleanisDefaultNamespace(String namespaceURI) booleanisEqualNode(Node arg) booleanisSameNode(Node other) booleanisSupported(String feature, String version) lookupNamespaceURI(String prefix) lookupPrefix(String namespaceURI) voidvoidNotifies the implementation that thisNodeobject is no longer being used by the application and that the implementation is free to reuse this object for nodes that may be created later.removeChild(Node oldChild) replaceChild(Node newChild, Node oldChild) voidreplaceData(int offset, int count, String arg) voidvoidsetNodeValue(String nodeValue) voidsetParentElement(SOAPElement parent) Sets the parent of thisNodeobject to the givenSOAPElementobject.voidvoidsetTextContent(String textContent) setUserData(String key, Object data, UserDataHandler handler) voidIf this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node.substringData(int offset, int count) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.Text
getWholeText, isElementContentWhitespace, replaceWholeText, splitText
-
Constructor Details
-
TextImpl
-
TextImpl
-
-
Method Details
-
createN
-
createN
-
doClone
-
getDomElement
-
getValue
Description copied from interface:NodeReturns the value of this node if this is aTextnode or the value of the immediate child of this node otherwise. If there is an immediate child of thisNodethat it is aTextnode then it's value will be returned. If there is more than oneTextnode then the value of the firstTextNode will be returned. Otherwisenullis returned. -
setValue
Description copied from interface:NodeIf this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node. The value of the immediate child of this node can be set only if, there is one child node and that node is aTextnode, or if there are no children in which case a childTextnode will be created. -
setParentElement
Description copied from interface:NodeSets the parent of thisNodeobject to the givenSOAPElementobject.- Specified by:
setParentElementin interfaceNode- Parameters:
parent- theSOAPElementobject to be set as the parent of thisNodeobject- Throws:
SOAPException- if there is a problem in setting the parent to the given element- See Also:
-
getParentElement
Description copied from interface:NodeReturns the parent element of thisNodeobject. This method can throw anUnsupportedOperationExceptionif the tree is not kept in memory.- Specified by:
getParentElementin interfaceNode- Returns:
- the
SOAPElementobject that is the parent of thisNodeobject ornullif thisNodeobject is root - See Also:
-
detachNode
public void detachNode()Description copied from interface:NodeRemoves thisNodeobject from the tree.- Specified by:
detachNodein interfaceNode
-
recycleNode
public void recycleNode()Description copied from interface:NodeNotifies the implementation that thisNodeobject is no longer being used by the application and that the implementation is free to reuse this object for nodes that may be created later.Calling the method
recycleNodeimplies that the methoddetachNodehas been called previously.- Specified by:
recycleNodein interfaceNode
-
getNodeName
- Specified by:
getNodeNamein interfaceNode
-
getNodeValue
- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
setNodeValue
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
getNodeType
public short getNodeType()- Specified by:
getNodeTypein interfaceNode
-
getParentNode
- Specified by:
getParentNodein interfaceNode
-
getChildNodes
- Specified by:
getChildNodesin interfaceNode
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
- Specified by:
getLastChildin interfaceNode
-
getPreviousSibling
- Specified by:
getPreviousSiblingin interfaceNode
-
getNextSibling
- Specified by:
getNextSiblingin interfaceNode
-
getAttributes
- Specified by:
getAttributesin interfaceNode
-
getOwnerDocument
- Specified by:
getOwnerDocumentin interfaceNode
-
insertBefore
- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
replaceChild
- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
removeChild
- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
appendChild
- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodesin interfaceNode
-
cloneNode
-
normalize
public void normalize() -
isSupported
- Specified by:
isSupportedin interfaceNode
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNode
-
getPrefix
-
setPrefix
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
getLocalName
- Specified by:
getLocalNamein interfaceNode
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributesin interfaceNode
-
getBaseURI
- Specified by:
getBaseURIin interfaceNode
-
compareDocumentPosition
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
getTextContent
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
setTextContent
- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
isSameNode
- Specified by:
isSameNodein interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefixin interfaceNode
-
isDefaultNamespace
- Specified by:
isDefaultNamespacein interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURIin interfaceNode
-
isEqualNode
- Specified by:
isEqualNodein interfaceNode
-
getFeature
- Specified by:
getFeaturein interfaceNode
-
setUserData
- Specified by:
setUserDatain interfaceNode
-
getUserData
- Specified by:
getUserDatain interfaceNode
-
getData
- Specified by:
getDatain interfaceCharacterData- Throws:
DOMException
-
setData
- Specified by:
setDatain interfaceCharacterData- Throws:
DOMException
-
getLength
public int getLength()- Specified by:
getLengthin interfaceCharacterData
-
substringData
- Specified by:
substringDatain interfaceCharacterData- Throws:
DOMException
-
appendData
- Specified by:
appendDatain interfaceCharacterData- Throws:
DOMException
-
insertData
- Specified by:
insertDatain interfaceCharacterData- Throws:
DOMException
-
deleteData
- Specified by:
deleteDatain interfaceCharacterData- Throws:
DOMException
-
replaceData
- Specified by:
replaceDatain interfaceCharacterData- Throws:
DOMException
-
getSoapDocument
-