commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [digester] RFE - Digester.startElement could use a callback
Date Sun, 19 Oct 2003 19:43:44 GMT
On Friday, October 17, 2003, at 08:43 AM, Matthijs Wensveen wrote:

> Simon Kitching wrote:
>
>> Hi Steve,
>>
>> I had a thought yesterday: if you want to trap cases where match returns
>> no elements, then you can write a custom Rules class which delegates to
>> RulesBase (or whichever), but has a custom match() rule which checks for
>> empty lists being returned from the "real" Rules object. Hope this
>> helps...
>>
>
> Yes, of course, problem solved, I should think :)

i think that WithDefaultsRuleWrapper already does exactly this. you might 
need to build from CVS HEAD or grab a recently nightly since i suspect 
that it was created after the last release.

- robert


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message