T - public abstract class TextImpl<T extends CharacterData> extends Object implements Text, CharacterData
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
log |
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| Modifier | Constructor and Description |
|---|---|
protected |
TextImpl(SOAPDocumentImpl ownerDoc,
CharacterData data) |
protected |
TextImpl(SOAPDocumentImpl ownerDoc,
String text) |
| Modifier and Type | Method and Description |
|---|---|
Node |
appendChild(Node newChild) |
void |
appendData(String arg) |
Node |
cloneNode(boolean deep) |
short |
compareDocumentPosition(Node other) |
protected abstract T |
createN(SOAPDocumentImpl ownerDoc,
CharacterData data) |
protected abstract T |
createN(SOAPDocumentImpl ownerDoc,
String text) |
void |
deleteData(int offset,
int count) |
void |
detachNode()
Removes this
Node object from the tree. |
NamedNodeMap |
getAttributes() |
String |
getBaseURI() |
NodeList |
getChildNodes() |
String |
getData() |
T |
getDomElement() |
Object |
getFeature(String feature,
String version) |
Node |
getFirstChild() |
Node |
getLastChild() |
int |
getLength() |
String |
getLocalName() |
String |
getNamespaceURI() |
Node |
getNextSibling() |
String |
getNodeName() |
short |
getNodeType() |
String |
getNodeValue() |
Document |
getOwnerDocument() |
SOAPElement |
getParentElement()
Returns the parent element of this
Node object. |
Node |
getParentNode() |
String |
getPrefix() |
Node |
getPreviousSibling() |
SOAPDocumentImpl |
getSoapDocument() |
String |
getTextContent() |
Object |
getUserData(String key) |
String |
getValue()
Returns the value of this node if this is a
Text node or the
value of the immediate child of this node otherwise. |
boolean |
hasAttributes() |
boolean |
hasChildNodes() |
Node |
insertBefore(Node newChild,
Node refChild) |
void |
insertData(int offset,
String arg) |
boolean |
isDefaultNamespace(String namespaceURI) |
boolean |
isEqualNode(Node arg) |
boolean |
isSameNode(Node other) |
boolean |
isSupported(String feature,
String version) |
String |
lookupNamespaceURI(String prefix) |
String |
lookupPrefix(String namespaceURI) |
void |
normalize() |
void |
recycleNode()
Notifies the implementation that this
Node
object 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. |
Node |
removeChild(Node oldChild) |
Node |
replaceChild(Node newChild,
Node oldChild) |
void |
replaceData(int offset,
int count,
String arg) |
void |
setData(String data) |
void |
setNodeValue(String nodeValue) |
void |
setParentElement(SOAPElement parent)
Sets the parent of this
Node object to the given
SOAPElement object. |
void |
setPrefix(String prefix) |
void |
setTextContent(String textContent) |
Object |
setUserData(String key,
Object data,
UserDataHandler handler) |
void |
setValue(String text)
If 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.
|
String |
substringData(int offset,
int count) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWholeText, isElementContentWhitespace, replaceWholeText, splitTextprotected static final Logger log
protected TextImpl(SOAPDocumentImpl ownerDoc, String text)
protected TextImpl(SOAPDocumentImpl ownerDoc, CharacterData data)
protected abstract T createN(SOAPDocumentImpl ownerDoc, CharacterData data)
protected abstract T createN(SOAPDocumentImpl ownerDoc, String text)
public T getDomElement()
public String getValue()
NodeText node or the
value of the immediate child of this node otherwise.
If there is an immediate child of this Node that it is a
Text node then it's value will be returned. If there is
more than one Text node then the value of the first
Text Node will be returned.
Otherwise null is returned.String with the text of this node if this is a
Text node or the text contained by the first
immediate child of this Node object that is a
Text object if such a child exists;
null otherwise.public void setValue(String text)
NodeText node, or if
there are no children in which case a child Text node will be
created.public void setParentElement(SOAPElement parent) throws SOAPException
NodeNode object to the given
SOAPElement object.parent - the SOAPElement object to be set as
the parent of this Node objectSOAPException - if there is a problem in setting the
parent to the given elementNode.getParentElement()public SOAPElement getParentElement()
NodeNode object.
This method can throw an UnsupportedOperationException
if the tree is not kept in memory.SOAPElement object that is the parent of
this Node object or null if this
Node object is rootNode.setParentElement(javax.xml.soap.SOAPElement)public void detachNode()
NodeNode object from the tree.public void recycleNode()
NodeNode
object 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 recycleNode implies that the method
detachNode has been called previously.
public String getNodeName()
getNodeName in interface Nodepublic String getNodeValue() throws DOMException
getNodeValue in interface NodeDOMExceptionpublic void setNodeValue(String nodeValue) throws DOMException
setNodeValue in interface NodeDOMExceptionpublic short getNodeType()
getNodeType in interface Nodepublic Node getParentNode()
getParentNode in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic Node getPreviousSibling()
getPreviousSibling in interface Nodepublic Node getNextSibling()
getNextSibling in interface Nodepublic NamedNodeMap getAttributes()
getAttributes in interface Nodepublic Document getOwnerDocument()
getOwnerDocument in interface Nodepublic Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore in interface NodeDOMExceptionpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild in interface NodeDOMExceptionpublic Node removeChild(Node oldChild) throws DOMException
removeChild in interface NodeDOMExceptionpublic Node appendChild(Node newChild) throws DOMException
appendChild in interface NodeDOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic boolean isSupported(String feature, String version)
isSupported in interface Nodepublic String getNamespaceURI()
getNamespaceURI in interface Nodepublic void setPrefix(String prefix) throws DOMException
setPrefix in interface NodeDOMExceptionpublic String getLocalName()
getLocalName in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic String getBaseURI()
getBaseURI in interface Nodepublic short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition in interface NodeDOMExceptionpublic String getTextContent() throws DOMException
getTextContent in interface NodeDOMExceptionpublic void setTextContent(String textContent) throws DOMException
setTextContent in interface NodeDOMExceptionpublic boolean isSameNode(Node other)
isSameNode in interface Nodepublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface Nodepublic boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace in interface Nodepublic String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface Nodepublic boolean isEqualNode(Node arg)
isEqualNode in interface Nodepublic Object getFeature(String feature, String version)
getFeature in interface Nodepublic Object setUserData(String key, Object data, UserDataHandler handler)
setUserData in interface Nodepublic Object getUserData(String key)
getUserData in interface Nodepublic String getData() throws DOMException
getData in interface CharacterDataDOMExceptionpublic void setData(String data) throws DOMException
setData in interface CharacterDataDOMExceptionpublic int getLength()
getLength in interface CharacterDatapublic String substringData(int offset, int count) throws DOMException
substringData in interface CharacterDataDOMExceptionpublic void appendData(String arg) throws DOMException
appendData in interface CharacterDataDOMExceptionpublic void insertData(int offset,
String arg)
throws DOMException
insertData in interface CharacterDataDOMExceptionpublic void deleteData(int offset,
int count)
throws DOMException
deleteData in interface CharacterDataDOMExceptionpublic void replaceData(int offset,
int count,
String arg)
throws DOMException
replaceData in interface CharacterDataDOMExceptionpublic SOAPDocumentImpl getSoapDocument()
Copyright © 2019 JBoss by Red Hat. All rights reserved.