Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Aug 19, 2014
@adamretter adamretter Added javadoc regarding the use of Node#insertBefore and
NodeImpl#insertAfter
62ae3ba
@dizzzz dizzzz Merge pull request #303 from adamretter/develop
Added javadoc regarding the use of Node#insertBefore and
925d0bc
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) " +

No commit comments for this range

Something went wrong with that request. Please try again.