jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1471365 - /jackrabbit/oak/trunk/doc/nodestate.md
Date Wed, 24 Apr 2013 10:52:00 GMT
Author: mduerig
Date: Wed Apr 24 10:52:00 2013
New Revision: 1471365

URL: http://svn.apache.org/r1471365
Log:
OAK-781: Clarify / fix effects of MISSING_NODE as base state of NodeBuilder
update node state documentation to reflect changes in method names of NodeBuilder

Modified:
    jackrabbit/oak/trunk/doc/nodestate.md

Modified: jackrabbit/oak/trunk/doc/nodestate.md
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/doc/nodestate.md?rev=1471365&r1=1471364&r2=1471365&view=diff
==============================================================================
--- jackrabbit/oak/trunk/doc/nodestate.md (original)
+++ jackrabbit/oak/trunk/doc/nodestate.md Wed Apr 24 10:52:00 2013
@@ -157,8 +157,8 @@ are already present in the `NodeState` i
 interface contains the following key methods:
 
   * The `setProperty` and `removeProperty` methods for modifying properties
-  * The `getChild` method for accessing or modifying an existing subtree
-  * The `addNode`, `setNode` and `removeNode` methods for adding, replacing
+  * The `getChildNode` method for accessing or modifying an existing subtree
+  * The `setChildNode` and `removeChildNode` methods for adding, replacing
     or removing a subtree
   * The `exists` method for checking whether the node represented by
     a builder exists or is accessible
@@ -171,15 +171,15 @@ other builders. For example:
 
 ```java
 NodeBuilder rootBuilder = root.builder();
-NodeBuilder fooBuilder = rootBuilder.getChild("foo");
-NodeBuilder barBuilder = fooBuilder.getChild("bar");
+NodeBuilder fooBuilder = rootBuilder.getChildNode("foo");
+NodeBuilder barBuilder = fooBuilder.getChildNode("bar");
 
 assert !barBuilder.getBoolean("x");
-fooBuilder.getChild("bar").setProperty("x", Boolean.TRUE);
+fooBuilder.getNodeChild("bar").setProperty("x", Boolean.TRUE);
 assert barBuilder.getBoolean("x");
 
 assert barBuilder.exists();
-fooBuilder.removeNode("bar");
+fooBuilder.removeChildNode("bar");
 assert !barBuilder.exists();
 ```
 



Mime
View raw message