commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <>
Subject Re: [Digester] Line number parameters in CallMethods
Date Sun, 06 Apr 2003 20:00:25 GMT
hi Jeremy

let's see if i understand you correctly. some of the parameter values 
which the method the CallMethodRule requires needs to be obtained from the 
SAX locator for the document.

as i see it, there are two parts to this problem. the first is accessing 
the locator. i've added a getter for the document Locator to Digester but 
you'll need to build from CVS HEAD or wait for a new nightly build.

the second part is creating a custom rule which sets the parameter value 
used by CallMethodRule. i suggest that you take a look at CallParamRule. 
the parameters used by CallMethodRule are stored on the digester object 
stack. it should be pretty straightforward.

- robert

On Saturday, April 5, 2003, at 01:35 AM, Jeremy Wohl wrote:

> Hi folks,
> How does one pass line/col params to CallMethodRule called methods?
> I need to annotate errors in tag bodies/attributes, that will resolve
> beyond the Digester parse.
> I vaguely see how to push the digester instance on the stack, and
> retrieve SAX locator info, but don't see how to connect it up with
> clean CallMethodRule params.  Need some help.
> thanks,
> -jeremy
> _____________________________________________________________________
> jeremy wohl ..:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message