You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by md...@apache.org on 2012/11/08 11:42:27 UTC

svn commit: r1407003 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeBuilder.java

Author: mduerig
Date: Thu Nov  8 10:42:27 2012
New Revision: 1407003

URL: http://svn.apache.org/viewvc?rev=1407003&view=rev
Log:
OAK-417: Refactor/reimplement TreeImpl.getStatus and TreeImpl.getPropertyStatus to take advantage of the underlying NodeBuilder
Javadoc

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeBuilder.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeBuilder.java?rev=1407003&r1=1407002&r2=1407003&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeBuilder.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeBuilder.java Thu Nov  8 10:42:27 2012
@@ -46,10 +46,23 @@ public interface NodeBuilder {
     @CheckForNull
     NodeState getBaseState();
 
+    /**
+     * Check whether this builder represents a new node, which is not present in the base state.
+     * @return  {@code true} for a new node
+     */
     boolean isNew();
 
+    /**
+     * Check whether this builder represents a removed node, which is present in the base state.
+     * @return  {@code true} for a removed node
+     */
     boolean isRemoved();
 
+    /**
+     * Check whether this builder represents a modified node, which has either modified properties
+     * or removed or added child nodes.
+     * @return  {@code true} for a modified node
+     */
     boolean isModified();
 
     /**