jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1407003 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeBuilder.java
Date Thu, 08 Nov 2012 10:42:27 GMT
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();
 
     /**



Mime
View raw message