commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Smith <Paul.Sm...@lawlex.com.au>
Subject RE: [Digester]: Digester Rules and custom Rules
Date Tue, 25 Feb 2003 22:56:27 GMT
Or could someone confirm an answer to my own question, is that through the
<include> attribute?

e.g.

<pattern value="blah">
  <include class="org.mycompany.blah.BlahRule"/>
</pattern>

Paul

> -----Original Message-----
> From: Paul Smith [mailto:Paul.Smith@lawlex.com.au]
> Sent: Wednesday, 26 February 2003 9:53 AM
> To: Jakarta Commons Users List (E-mail)
> Subject: [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
> 
> 
> 
> ---------------------------------------------------------------------
> 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