Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 87674 invoked from network); 5 May 2003 19:21:02 -0000 Received: from amino.whiskylabs.com (64.90.178.69) by daedalus.apache.org with SMTP; 5 May 2003 19:21:02 -0000 Received: (qmail 15349 invoked by uid 2000); 5 May 2003 19:20:58 -0000 Date: Mon, 5 May 2003 15:20:58 -0400 From: Jeremy Wohl To: Jakarta Commons Users List Subject: Re: [Digester] Line number parameters in CallMethods Message-ID: <20030505192058.GA15105@amino.whiskylabs.com> References: <20030405003550.GA21666@amino.whiskylabs.com> <67ED5CD4-686A-11D7-A33E-003065DC754C@blueyonder.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67ED5CD4-686A-11D7-A33E-003065DC754C@blueyonder.co.uk> User-Agent: Mutt/1.4.1i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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