[
https://issues.apache.org/jira/browse/BEANUTILS-370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierrick HYMBERT updated BEANUTILS-370:
---------------------------------------
Attachment: query-feature.patch
The proof of concept of the query feature inside expression
> Querying or filtering collections expression feature
> ----------------------------------------------------
>
> Key: BEANUTILS-370
> URL: https://issues.apache.org/jira/browse/BEANUTILS-370
> Project: Commons BeanUtils
> Issue Type: New Feature
> Components: Bean / Property Utils
> Reporter: Pierrick HYMBERT
> Fix For: LATER THAN 1.8.3
>
> Attachments: query-feature.patch
>
>
> Feature proposal to support querying or filtering collection of beans inside
> expression:
> employee.addresses{city == 'Toulouse'}
> employees{subordinate[0] != null}
> ...
> I attach patch as a proof of concept.
> Successfuly JUnit tests examples are :
> listNestedBeans{intArray[0] == 0}.intArray[0]
> listNestedBeans{intArray[0] != 0}
> listNestedBeans{floatProperty == 1.1}.floatProperty
> listNestedBeans{stringProperty == 'Yop 2'}.stringProperty
> arrayNestedBeans{doubleProperty = -1.5}.doubleProperty
> arrayNestedBeans{dateProperty != null}
> arrayNestedBeans{dateProperty == " + formatedDate + "}
> Modified classes :
> org.apache.commons.beanutils.expression.Resolver
> org.apache.commons.beanutils.expression.DefaultResolver
> org.apache.commons.beanutils.PropertyUtilsBean
> org.apache.commons.beanutils.PropertyUtils
> Modified test classes:
> org.apache.commons.beanutils.expression.DefaultResolverTestCase
> org.apache.commons.beanutils.TestBean
> org.apache.commons.beanutils.PropertyUtilsTestCase
> Thank you for your feedbacks
> Regards,
> Pierrick HYMBERT
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.