Hey Mike,
I'm sorry, I misunderstood what your aim was; I thought you were only
looking for multi-valued params. If params can have *anything* underneath
them, then the client code would have to do a bit of XML JDom work. I can't
think of any other way around that either.
-Roy
----- Original Message -----
From: "Mike Moulton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 27, 2002 3:19 PM
Subject: Re: [Mav-user] Params w/child nodes
> On 7/27/02 7:16 AM, "Roy Truelove" <[EMAIL PROTECTED]> wrote:
>
> >> From: Mike Moulton [mailto:[EMAIL PROTECTED]]
> >> Anyone see any problems with this approach?
> >
> > The only problem that I can see with this approach,
> >
> >> if (paramNode.hasChildren())
> >> value = paramNode.getChildren()
> >> else
> >> value = paramNode.getTextTrim();
> >
> > is that the client code would have to deal with a List of JDom Elements,
as
> > opposed to a List of Objects. I originally had something like this, but
I
> > wanted all of the XML parsing to be abstracted out so the client code
deals
> > only with Objects. Do we want the client code to have to deal with XML
in
> > just this one case, where in all other cases it gets an object? This is
not
> > a problem as much as it is a design decision.
> >
> > -Roy
>
> I understand you situation completely, however this functionality is
exactly
> what I am looking for as I will have quite an extensive document below the
> param node for several controllers. For these cases I am expecting the
> controller to handle the extraction of data as there is no way maverick
can
> know the structure of my document.
>
> I'm trying to think if there is a way that everyone can be happy, but
> nothing comes to mind immediately.
>
> --
> Mike Moulton
> [EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Mav-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mav-user
> Archives are available at http://www.mail-archive.com/
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user
Archives are available at http://www.mail-archive.com/