DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31329>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31329 Support for evaluating a predicate when determining if a rule is valid for a given element Summary: Support for evaluating a predicate when determining if a rule is valid for a given element Product: Commons Version: unspecified Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Digester AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi There, Hope all is going well. Attached is a patch that adds support for evaluating a Commons Collections Predicate object when matching rules to elements, rather than relying on string comparison of the elements path. This lets one write an arbitrary Predicate implementation (associated with a rule) that can check details from the elements name, namespace and attributes before notifying digester that the particular rule matches the element node being tested. I've tested this enhancement to perform attribute value matching, etc, but it should open up the rule evaluation section of digester to allow any arbitrary comparison (given enough context information). I'm definitely a digester novice, but I couldn't see this functionality beforehand - I'm happy to change any/all of the patch if there's a better way. Looking forward to your comments. Cheers, Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
