On 6.2.13 10:03, [email protected] wrote:
@@ -59,4 +60,9 @@ public final class TreeUtil {
return null;
}
}
+
+ public static boolean getBoolean(Tree tree, String propertyName) {
+ PropertyState property = tree.getProperty(propertyName);
+ return property != null && !property.isArray() &&
property.getValue(BOOLEAN);
+ }
}
Shouldn't we call this method getBooleanOrFalse? Alternatively we could leave it as is but add a defaultValue parameter.
Michael
