abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: get all extension elements
Date Sat, 06 Jan 2007 19:25:24 GMT
On 1/6/07, Yogesh Mujumdar <yogesh.mujumdar@gmail.com> wrote:
> is there any way to get all the exension elements from an entry and handle
> each one of them one by one. I read the extension factory way but i am
> looking at something like :
>
> List allextns = getallextensions(entry);
>
> for(i = 0;i < list.size(); i++) {
>  if list(i) is extension "foo" {
>      dooFoo()
>  }
>  else if list(i) is extension "bar" {
>     doBar();
>  }
>  else if .....
> ......
> .....
> }

How about List<Element> exts = entry.getExtensions(); ?

> Also, how do i retain all the extensions the client sends at the server
> side?

Can you elaborate on what you're talking about here?

-garrett

Mime
View raw message