I'm trying to say that if we can composite Rules we doesn't need the extended base rules.
the separation between the matching patterns and the rule implementations is at the heart of the digester design.
at the moment, Rule implementations are easily to write since the matching logic is contained in the pattern matching Rules implementation. also, a user who is not satisfied with the pattern matching Rules implementations shipped with digester can plug in their own pattern matching Rules without having to rewrite any Rule implementations.
these are major advantages of the current digester design. i would oppose any moves in the direction you propose since these advantages would be at risk.
- robert
-----Mensaje original----- De: robert burrell donkin [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 27 de Febrero de 2003 12:57 Para: Jakarta Commons Users List Asunto: Re: Digester w/ Recursive Tags
hi Pablo
i'm not sure that i really understand what you're driving at here. AFAIK
recursive tags can be processed pretty well already using (for example) the extended base rules. could you give a more detailed example of what you're having problems with?
- robert
On Thursday, February 27, 2003, at 02:42 PM, Pablo Nussembaum wrote:
I've the same problem, and I think to solve the problem we need to change the digesters rules to accept another rule (like a composite pattern)
An example will make my point more clear.
public void parse()
{
...
Digeter d = new Digester();
Rule r = new xxxxRule("a");
r.addXxxxRule("b");
d.addRule(r);
...
}
-- Pablo Nussembaum mailto: [EMAIL PROTECTED] Tel: +54-11-4382-6400 int 123 Datatransfer S.A.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]