Package org.dom4j.dom
Class DOMText
-
- All Implemented Interfaces:
Serializable
,Cloneable
,CharacterData
,Node
,Text
,CharacterData
,Node
,Text
public class DOMText extends DefaultText implements Text
DOMText
implements a Text node which supports the W3C DOM API.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.dom4j.tree.FlyweightText
text
-
Fields inherited from class org.dom4j.tree.AbstractNode
NODE_TYPE_NAMES
-
Fields inherited from interface org.dom4j.Node
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
-
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
-
-
Method Summary
-
Methods inherited from class org.dom4j.tree.DefaultText
getParent, isReadOnly, setParent, setText, supportsParent
-
Methods inherited from class org.dom4j.tree.FlyweightText
createXPathResult, getText
-
Methods inherited from class org.dom4j.tree.AbstractText
accept, asXML, getNodeType, toString, write
-
Methods inherited from class org.dom4j.tree.AbstractCharacterData
appendText, getPath, getUniquePath
-
Methods inherited from class org.dom4j.tree.AbstractNode
asXPathResult, clone, createPattern, createXPath, createXPathFilter, detach, getDocument, getDocumentFactory, getName, getNodeTypeName, getPath, getStringValue, getUniquePath, hasContent, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, valueOf
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.dom4j.CharacterData
appendText
-
Methods inherited from interface org.dom4j.Node
accept, asXML, asXPathResult, clone, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getPath, getPath, getStringValue, getUniquePath, getUniquePath, hasContent, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, valueOf, write
-
Methods inherited from interface org.w3c.dom.Node
getNodeType
-
-
-
-
Method Detail
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfaceNode
-
setPrefix
public void setPrefix(String prefix) throws DOMException
- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
-
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interfaceNode
-
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interfaceNode
-
getNodeValue
public String getNodeValue() throws DOMException
- Specified by:
getNodeValue
in interfaceNode
- Throws:
DOMException
-
setNodeValue
public void setNodeValue(String nodeValue) throws DOMException
- Specified by:
setNodeValue
in interfaceNode
- Throws:
DOMException
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNode
in interfaceNode
-
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodes
in interfaceNode
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChild
in interfaceNode
-
getLastChild
public Node getLastChild()
- Specified by:
getLastChild
in interfaceNode
-
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSibling
in interfaceNode
-
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSibling
in interfaceNode
-
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributes
in interfaceNode
-
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
getOwnerDocument
in interfaceNode
-
insertBefore
public Node insertBefore(Node newChild, Node refChild) throws DOMException
- Specified by:
insertBefore
in interfaceNode
- Throws:
DOMException
-
replaceChild
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
- Specified by:
replaceChild
in interfaceNode
- Throws:
DOMException
-
removeChild
public Node removeChild(Node oldChild) throws DOMException
- Specified by:
removeChild
in interfaceNode
- Throws:
DOMException
-
appendChild
public Node appendChild(Node newChild) throws DOMException
- Specified by:
appendChild
in interfaceNode
- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodes
in interfaceNode
-
isSupported
public boolean isSupported(String feature, String version)
- Specified by:
isSupported
in interfaceNode
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes
in interfaceNode
-
getData
public String getData() throws DOMException
- Specified by:
getData
in interfaceCharacterData
- Throws:
DOMException
-
setData
public void setData(String data) throws DOMException
- Specified by:
setData
in interfaceCharacterData
- Throws:
DOMException
-
getLength
public int getLength()
- Specified by:
getLength
in interfaceCharacterData
-
substringData
public String substringData(int offset, int count) throws DOMException
- Specified by:
substringData
in interfaceCharacterData
- Throws:
DOMException
-
appendData
public void appendData(String arg) throws DOMException
- Specified by:
appendData
in interfaceCharacterData
- Throws:
DOMException
-
insertData
public void insertData(int offset, String arg) throws DOMException
- Specified by:
insertData
in interfaceCharacterData
- Throws:
DOMException
-
deleteData
public void deleteData(int offset, int count) throws DOMException
- Specified by:
deleteData
in interfaceCharacterData
- Throws:
DOMException
-
replaceData
public void replaceData(int offset, int count, String arg) throws DOMException
- Specified by:
replaceData
in interfaceCharacterData
- Throws:
DOMException
-
splitText
public Text splitText(int offset) throws DOMException
- Specified by:
splitText
in interfaceText
- Throws:
DOMException
-
isElementContentWhitespace
public boolean isElementContentWhitespace()
- Specified by:
isElementContentWhitespace
in interfaceText
-
getWholeText
public String getWholeText()
- Specified by:
getWholeText
in interfaceText
-
replaceWholeText
public Text replaceWholeText(String content) throws DOMException
- Specified by:
replaceWholeText
in interfaceText
- Throws:
DOMException
-
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURI
in interfaceNode
-
compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException
- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
-
getTextContent
public String getTextContent() throws DOMException
- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
-
setTextContent
public void setTextContent(String textContent) throws DOMException
- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
-
isSameNode
public boolean isSameNode(Node other)
- Specified by:
isSameNode
in interfaceNode
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefix
in interfaceNode
-
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
- Specified by:
isDefaultNamespace
in interfaceNode
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURI
in interfaceNode
-
isEqualNode
public boolean isEqualNode(Node other)
- Specified by:
isEqualNode
in interfaceNode
-
getFeature
public Object getFeature(String feature, String version)
- Specified by:
getFeature
in interfaceNode
-
setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)
- Specified by:
setUserData
in interfaceNode
-
getUserData
public Object getUserData(String key)
- Specified by:
getUserData
in interfaceNode
-
-