You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/09/21 09:37:59 UTC
DO NOT REPLY [Bug 31329] New: -
Support for evaluating a predicate when determining if a rule is valid for a given element
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: commons-dev@jakarta.apache.org
ReportedBy: crafterm@apache.org
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org