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 an...@apache.org on 2013/02/06 11:43:50 UTC
svn commit: r1442897 -
/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/NodeUtil.java
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);
}