jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1442897 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/NodeUtil.java
Date Wed, 06 Feb 2013 10:43:50 GMT
Author: angela
Date: Wed Feb  6 10:43:50 2013
New Revision: 1442897

URL: http://svn.apache.org/viewvc?rev=1442897&view=rev
Log:
javadoc

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/NodeUtil.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/NodeUtil.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/NodeUtil.java?rev=1442897&r1=1442896&r2=1442897&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/NodeUtil.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/NodeUtil.java
Wed Feb  6 10:43:50 2013
@@ -171,6 +171,17 @@ public class NodeUtil {
         tree.removeProperty(name);
     }
 
+    /**
+     * Returns the boolean representation of the property with the specified
+     * {@code propertyName}. If the property does not exist or
+     * {@link org.apache.jackrabbit.oak.api.PropertyState#isArray() is an array}
+     * this method returns {@code false}.
+     *
+     * @param name The name of the property.
+     * @return the boolean representation of the property state with the given
+     * name. This utility returns {@code false} if the property does not exist
+     * or is an multivalued property.
+     */
     public boolean getBoolean(String name) {
         return TreeUtil.getBoolean(tree, name);
     }



Mime
View raw message