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 $
- Author:
- James Strachan
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeappendChild(Node node, Node newChild) static voidappendData(CharacterData charData, String arg) static voidappendElementsByTagName(List<? super Element> list, Branch parent, String name) static voidappendElementsByTagNameNS(List<? super Element> list, Branch parent, String namespace, String localName) static Attrstatic DocumentasDOMDocument(Document document) static DocumentTypestatic ElementasDOMElement(Node element) static Nodestatic TextasDOMText(CharacterData text) static Nodestatic NodeListcreateNodeList(List<Node> list) static voiddeleteData(CharacterData charData, int offset, int count) static NamedNodeMapgetAttributes(Node node) static NodeListgetChildNodes(Node node) static StringgetData(CharacterData charData) static NodegetFirstChild(Node node) static NodegetLastChild(Node node) static intgetLength(CharacterData charData) static StringgetLocalName(Node node) static StringgetNamespaceURI(Node node) static NodegetNextSibling(Node node) static StringgetNodeValue(Node node) static DocumentgetOwnerDocument(Node node) static NodegetParentNode(Node node) static Stringstatic NodegetPreviousSibling(Node node) static booleanhasAttributes(Node node) static booleanhasChildNodes(Node node) static NodeinsertBefore(Node node, Node newChild, Node refChild) static voidinsertData(CharacterData data, int offset, String arg) static booleanisNodeEquals(Node node1, Node node2) static booleanisNodeSame(Node node1, Node node2) static booleanisStringEquals(String string1, String string2) static booleanisSupported(Node n, String feature, String version) static voidstatic voidCalled when a method has not been implemented yetstatic NoderemoveChild(Node node, Node oldChild) static NodereplaceChild(Node node, Node newChild, Node oldChild) static voidreplaceData(CharacterData charData, int offset, int count, String arg) static voidsetData(CharacterData charData, String data) static voidsetNodeValue(Node node, String nodeValue) static voidstatic StringsubstringData(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
-