You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jeremy Wohl <je...@igmus.org> on 2003/05/05 21:20:58 UTC

Re: [Digester] Line number parameters in CallMethods

On Sun, Apr 06, 2003 at 09:00:25PM +0100, robert burrell donkin wrote:
> 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.

Thanks for the change.

> 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.

Looks like the "param stack" is private (protected) to Digester and
called with package-private methods (peekParams, ..) by CallMethodRule
and CallParamRule.

Is there a way to touch without modifying the Digester class?

thanks,
-jeremy
_____________________________________________________________________
jeremy wohl ..: http://igmus.org

Re: [Digester] Line number parameters in CallMethods

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
On Monday, May 5, 2003, at 08:20 PM, Jeremy Wohl wrote:

> On Sun, Apr 06, 2003 at 09:00:25PM +0100, robert burrell donkin wrote:

<snip>

>> 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.
>
> Looks like the "param stack" is private (protected) to Digester and
> called with package-private methods (peekParams, ..) by CallMethodRule
> and CallParamRule.
>
> Is there a way to touch without modifying the Digester class?

i've changed the params stack accessor methods to be public (there is no 
good reason why they need to be package protected.) again, you'll need to 
use CVS HEAD or wait for a new nightly.

- robert