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, wait
getWholeText, isElementContentWhitespace, replaceWholeText, splitText
protected 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()
Node
Text
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)
Node
Text
node, or if
there are no children in which case a child Text
node will be
created.public void setParentElement(SOAPElement parent) throws SOAPException
Node
Node
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()
Node
Node
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()
Node
Node
object from the tree.public void recycleNode()
Node
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.
Calling the method recycleNode
implies that the method
detachNode
has been called previously.
public String getNodeName()
getNodeName
in interface Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in interface Node
DOMException
public short getNodeType()
getNodeType
in interface Node
public Node getParentNode()
getParentNode
in interface Node
public NodeList getChildNodes()
getChildNodes
in interface Node
public Node getFirstChild()
getFirstChild
in interface Node
public Node getLastChild()
getLastChild
in interface Node
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public Node getNextSibling()
getNextSibling
in interface Node
public NamedNodeMap getAttributes()
getAttributes
in interface Node
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
DOMException
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
DOMException
public boolean hasChildNodes()
hasChildNodes
in interface Node
public boolean isSupported(String feature, String version)
isSupported
in interface Node
public String getNamespaceURI()
getNamespaceURI
in interface Node
public void setPrefix(String prefix) throws DOMException
setPrefix
in interface Node
DOMException
public String getLocalName()
getLocalName
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public String getBaseURI()
getBaseURI
in interface Node
public short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition
in interface Node
DOMException
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
public void setTextContent(String textContent) throws DOMException
setTextContent
in interface Node
DOMException
public boolean isSameNode(Node other)
isSameNode
in interface Node
public String lookupPrefix(String namespaceURI)
lookupPrefix
in interface Node
public boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace
in interface Node
public String lookupNamespaceURI(String prefix)
lookupNamespaceURI
in interface Node
public boolean isEqualNode(Node arg)
isEqualNode
in interface Node
public Object getFeature(String feature, String version)
getFeature
in interface Node
public Object setUserData(String key, Object data, UserDataHandler handler)
setUserData
in interface Node
public Object getUserData(String key)
getUserData
in interface Node
public String getData() throws DOMException
getData
in interface CharacterData
DOMException
public void setData(String data) throws DOMException
setData
in interface CharacterData
DOMException
public int getLength()
getLength
in interface CharacterData
public String substringData(int offset, int count) throws DOMException
substringData
in interface CharacterData
DOMException
public void appendData(String arg) throws DOMException
appendData
in interface CharacterData
DOMException
public void insertData(int offset, String arg) throws DOMException
insertData
in interface CharacterData
DOMException
public void deleteData(int offset, int count) throws DOMException
deleteData
in interface CharacterData
DOMException
public void replaceData(int offset, int count, String arg) throws DOMException
replaceData
in interface CharacterData
DOMException
public SOAPDocumentImpl getSoapDocument()
Copyright © 2021 JBoss by Red Hat. All rights reserved.