commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <>
Subject Re: earth to digester
Date Fri, 02 Nov 2001 18:34:54 GMT
On Thursday, November 1, 2001, at 11:52 PM, Scott Sanders wrote:

> Well then, just post the design problem and let it drift with us whilst we
> look for the solution ;-)

sounds like a good plan :)

i have a solution but i don't really like it.
it smells a bit like 'clever' code and i don't like 'clever' code 
(especially when written by myself) ...

the idea was that you could use a 'alpha/?' style pattern (found in the 
ExtendedBaseRules) to match all child element of <alpha> (say). this rule 
could set a property based on the name of the current element.

unfortunately, only the element attributes and not the element name are 
passed into the begin method of a rule. so i can't set the property based 
on the element name.

the usual solution would be to pass in extra parameters into the begin 
method - but i don't like breaking a fundamental interface without a good 

digester is essentially single threaded and so you could add properties to 
digester - but that seems a bit ugly.

that about where i've got to so far...

- robert

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message