[jdom-interest] RE: Request new method Element.addContent( List
mixedContent ).
Jason Hunter
jhunter at collab.net
Thu Mar 29 09:32:47 PST 2001
The standard way to do it now is:
elt.getMixedContent().addAll(List).
Isn't that pretty good already?
-jh-
"Steven D. Keens" wrote:
>
> Now that I've looked at it and thought about it some
> more I believe that
>
> public Element addContent( List mixedContent );
>
> is more consistent with the current API. In fact more
> consistent then setMixedContent(). I see setMixedContent()
> as a convenience method that just clears the element's
> current content before adding the mixedContent.
>
> I've attached a version of Element for your perusal.
>
> >-----Original Message-----
> >From: Steven D. Keens [mailto:skeens at planetfred.com]
> >Sent: Thursday, March 29, 2001 10:44
> >To: jdom-interest
> >Subject: Request new method Element.addContent( List mixedContent ).
> >
> >
> >How useful would be a method that adds a list of
> >mixed content to another element rather than just
> >replacing the mixed content as does setMixedContent( List )?
> >
> >I suggest one of the methods
> >
> > public Element addContent( List mixedContent );
> > public Element addMixedContent( List mixedContent );
> >
> >be added to Element. I'm willing to implement it
> >if you think it's needed.
> >
> >--
> >Steven Keens mailto:skeens at planetfred.com
> >PlanetFred Inc. http://www.planetfred.com
> >44 Byward Market, Suite 240, Ottawa, ON, K1N 7A2, Canada
>
> ------------------------------------------------------------------------
> Name: Element.java
> Element.java Type: unspecified type (application/octet-stream)
> Encoding: quoted-printable
More information about the jdom-interest
mailing list