Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added javadoc regarding the use of Node#insertBefore and

NodeImpl#insertAfter
  • Loading branch information...
commit 62ae3ba089b08556d8cab1111ce96a7845422dec 1 parent 366763b
@adamretter adamretter authored
Showing with 19 additions and 5 deletions.
  1. +19 −5 src/org/exist/dom/NodeImpl.java
View
24 src/org/exist/dom/NodeImpl.java
@@ -88,11 +88,25 @@ public StoredNode updateChild(Txn transaction, Node oldChild, Node newChild) thr
"not implemented on class " + getClass().getName());
}
- public void insertBefore(Txn transaction, NodeList nodes, Node refChild) throws DOMException {
- throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
- "not implemented on class " + getClass().getName());
- }
-
+ /**
+ * Insert a list of nodes at the position before the reference
+ * child.
+ *
+ * NOTE: You must call insertBefore on the parent node of the node that you
+ * want to insert nodes before.
+ */
+ public void insertBefore(Txn transaction, NodeList nodes, Node refChild) throws DOMException {
+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
+ "not implemented on class " + getClass().getName());
+ }
+
+ /**
+ * Insert a list of nodes at the position following the reference
+ * child.
+ *
+ * NOTE: You must call insertAfter on the parent node of the node that you want
+ * to insert nodes after.
+ */
public void insertAfter(Txn transaction, NodeList nodes, Node refChild) throws DOMException {
throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
"insertAfter(Txn transaction, NodeList nodes, Node refChild) " +
Please sign in to comment.
Something went wrong with that request. Please try again.