commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [digester] Method return value into the stack
Date Sun, 13 Jul 2003 16:56:23 GMT
On Friday, July 11, 2003, at 02:49 PM, Kyrre Lugg wrote:

> Is it possible to use the return value of a callMethodRule as a param to 
> a subsequent callMethodRule?

not at the moment,

> How can it eventually be done?

i've just added a method into CallMethodRule which is called with the 
result of the method call. if you upgrade to CVS HEAD (or wait for a new 
nightly) then you may be able to create a subclass that does what you want.
  (take a look at ObjectParamRule)

there may be a few wrinkles since the call method params are pushed onto a 
stack and so are only available within the subtree rooted at the matched 
element. if you need to share the information between element where one 
does not enclose the other, for example:

<element-one>...</element-one><element-two>...</element-two>

then this will be more difficult. i have some ideas but i'll need to talk 
them through with the other developers.

- robert


Mime
View raw message