Class DOMNodeHelper
java.lang.Object
org.dom4j.dom.DOMNodeHelper
DOMNodeHelper
contains a collection of utility methods for use
across Node implementations.
- Version:
- $Revision: 1.20 $
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Node
appendChild
(Node node, Node newChild) static void
appendData
(CharacterData charData, String arg) static void
appendElementsByTagName
(List<? super Element> list, Branch parent, String name) static void
appendElementsByTagNameNS
(List<? super Element> list, Branch parent, String namespace, String localName) static Attr
static Document
asDOMDocument
(Document document) static DocumentType
static Element
asDOMElement
(Node element) static Node
static Text
asDOMText
(CharacterData text) static Node
static NodeList
createNodeList
(List<Node> list) static void
deleteData
(CharacterData charData, int offset, int count) static NamedNodeMap
getAttributes
(Node node) static NodeList
getChildNodes
(Node node) static String
getData
(CharacterData charData) static Node
getFirstChild
(Node node) static Node
getLastChild
(Node node) static int
getLength
(CharacterData charData) static String
getLocalName
(Node node) static String
getNamespaceURI
(Node node) static Node
getNextSibling
(Node node) static String
getNodeValue
(Node node) static Document
getOwnerDocument
(Node node) static Node
getParentNode
(Node node) static String
static Node
getPreviousSibling
(Node node) static boolean
hasAttributes
(Node node) static boolean
hasChildNodes
(Node node) static Node
insertBefore
(Node node, Node newChild, Node refChild) static void
insertData
(CharacterData data, int offset, String arg) static boolean
isNodeEquals
(Node node1, Node node2) static boolean
isNodeSame
(Node node1, Node node2) static boolean
isStringEquals
(String string1, String string2) static boolean
isSupported
(Node n, String feature, String version) static void
static void
Called when a method has not been implemented yetstatic Node
removeChild
(Node node, Node oldChild) static Node
replaceChild
(Node node, Node newChild, Node oldChild) static void
replaceData
(CharacterData charData, int offset, int count, String arg) static void
setData
(CharacterData charData, String data) static void
setNodeValue
(Node node, String nodeValue) static void
static String
substringData
(CharacterData charData, int offset, int count) static boolean
-
Field Details
-
EMPTY_NODE_LIST
-
-
Constructor Details
-
DOMNodeHelper
protected DOMNodeHelper()
-
-
Method Details
-
supports
-
getNamespaceURI
-
getPrefix
-
getLocalName
-
setPrefix
- Throws:
DOMException
-
getNodeValue
- Throws:
DOMException
-
setNodeValue
- Throws:
DOMException
-
getParentNode
-
getChildNodes
-
getFirstChild
-
getLastChild
-
getPreviousSibling
-
getNextSibling
-
getAttributes
-
getOwnerDocument
-
insertBefore
- Throws:
DOMException
-
replaceChild
- Throws:
DOMException
-
removeChild
- Throws:
DOMException
-
appendChild
- Throws:
DOMException
-
hasChildNodes
-
cloneNode
-
normalize
-
isSupported
-
hasAttributes
-
getData
- Throws:
DOMException
-
setData
- Throws:
DOMException
-
getLength
-
substringData
public static String substringData(CharacterData charData, int offset, int count) throws DOMException - Throws:
DOMException
-
appendData
- Throws:
DOMException
-
insertData
- Throws:
DOMException
-
deleteData
- Throws:
DOMException
-
replaceData
public static void replaceData(CharacterData charData, int offset, int count, String arg) throws DOMException - Throws:
DOMException
-
appendElementsByTagName
-
appendElementsByTagNameNS
-
createNodeList
-
asDOMNode
-
asDOMDocument
-
asDOMDocumentType
-
asDOMText
-
asDOMElement
-
asDOMAttr
-
notSupported
public static void notSupported()Called when a method has not been implemented yet- Throws:
DOMException
- DOCUMENT ME!
-
isStringEquals
-
isNodeEquals
-
isNodeSame
-