You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Paul Smith <Pa...@lawlex.com.au> on 2003/02/25 23:52:39 UTC

[Digester]: Digester Rules and custom Rules

Umm, is there any way to define a custom rule using a Digester Rules xml, or
will I have to ditch the defining of the rules in XML and encode it in the
class?

Looking at the Digester 1.3 dtd, there doesn't seem to be an element to
define something like:

<add-custom-rule pattern="Blah" class="org.mycompany.blah.BlahRule" />

for the equivalent Java code:

digester.addRule( "Blah", new org.mycompany.blah.BlahRule());

Am I missing something?

Thanks
_________________________
Paul Smith 
Lawlex Compliance Solutions
phone: +61 3 9278 1511
email: paul.smith@lawlex.com.au