Jakarta commons-beanutils PropertyUtils replacement.
Jakarta commons-beanutils PropertyUtils replacement.
Install:
<dependency>
<groupId>eu.qualityontime.commons</groupId>
<artifactId>q-beanutils</artifactId>
<version>0.8</version>
</dependency>
Plan:
@
notation. Example: attr1.@field1
attr1?.attr2
attr1
as a List
expression attr1*.attr2
gets all the attr2 values in collection. See Groovy spread operator. (http://docs.groovy-lang.org/latest/html/documentation/#_spread_operator)Nullable attribute access has a limitation.
When the attribute is accesse like getIndexedProp(int index)
then the underlying method must take care of nullability.
As QPropertyUtils
is behaving like commona PropertyUtils most behaviours are the same (http://commons.apache.org/proper/commons-beanutils/javadocs/v1.9.3/apidocs/org/apache/commons/beanutils/package-summary.html)