[jdom-interest] getMixedContent()

Jason Hunter jhunter at collab.net
Sun May 20 15:56:16 PDT 2001


Because the list returned is (supposed to be) smart enough to ensure
well-formedness constraints.  PartialList isn't that smart.  We'll get a
better one and probably if we used FilterList we might be able to return
the list directly.  That'll be a *huge* performance increase for walking
the tree I expect.  Jools, status?

-jh-

Noam Tamim wrote:
> 
> Hi.
> 
> Why does Element.getMixedContent() looks like that:
> 
>     public List getMixedContent() {
>         if (content == null) {
>             content = new LinkedList();
>         }
> 
>         PartialList result = new PartialList(content, this);
>         result.addAllPartial(content);
>         return result;
>     }
> 
> instead of just returning the element's 'content' field?
> 
>  - Noam.
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list