Re: Strengthening setup() contract

2003-03-19 Thread Jeff Turner
On Wed, Mar 19, 2003 at 04:40:20PM +0100, Sylvain Wallez wrote: > Jeff Turner wrote: > > >At that level, there isn't enough info to provide a user-friendly error > >message. I think the best solution is to add a check in the > >treeprocessor's ReadNodeBuilder. I've now got it displaying: > > > >

Re: Strengthening setup() contract

2003-03-19 Thread Stefano Mazzocchi
Jeff Turner wrote: Hi, Generator, Reader and Transformer all inherit from SitemapModelComponent, which declares the setup() method: public interface SitemapModelComponent extends Component { /** * Set the SourceResolver, objectModel * Map, the source and sitemap Parameters * use

Re: Strengthening setup() contract

2003-03-19 Thread Sylvain Wallez
Jeff Turner wrote: At that level, there isn't enough info to provide a user-friendly error message. I think the best solution is to add a check in the treeprocessor's ReadNodeBuilder. I've now got it displaying: Reader at file:/home/jeff/apache/xml/xml-forrest/build/webapp/sitemap.xmap:135:5

Re: Strengthening setup() contract

2003-03-19 Thread Jeff Turner
On Wed, Mar 19, 2003 at 09:29:05AM -0500, Vadim Gritsenko wrote: > Jeff Turner wrote: ... > > void setup(SourceResolver resolver, Map objectModel, String src, > > Parameters par) ... > >If there's no objections, I would like to: > >- assert in the Javadoc that 'src' will never be null > > > >

Re: Strengthening setup() contract

2003-03-19 Thread Sylvain Wallez
Vadim Gritsenko wrote: Jeff Turner wrote: Hi, Generator, Reader and Transformer all inherit from SitemapModelComponent, which declares the setup() method: public interface SitemapModelComponent extends Component { /** * Set the SourceResolver, objectModel * Map, the source and sitemap

Re: Strengthening setup() contract

2003-03-19 Thread Konstantin Piroumian
From: "Jeff Turner" <[EMAIL PROTECTED]> > Hi, > > Generator, Reader and Transformer all inherit from > SitemapModelComponent, which declares the setup() method: > > public interface SitemapModelComponent extends Component { > /** > * Set the SourceResolver, objectModel > * Map, the s

Re: Strengthening setup() contract

2003-03-19 Thread Vadim Gritsenko
Jeff Turner wrote: Hi, Generator, Reader and Transformer all inherit from SitemapModelComponent, which declares the setup() method: public interface SitemapModelComponent extends Component { /** * Set the SourceResolver, objectModel * Map, the source and sitemap Parameters * used t