You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by Elias Torres <el...@torrez.us> on 2006/06/12 20:00:31 UTC

Delete/Remove in API

As I write a server implementation, I needed to remove links from an
existing entry. Can I do this today and I'm just missing a method? Or is
this in the TODO?

-Elias

Re: Delete/Remove in API

Posted by Elias Torres <el...@torrez.us>.
Thanks!

-Elias

James M Snell wrote:
> Every element has a discard() method.  To remove a link, grab a
> reference to it and call discard().
> 
> e.g. entry.getLink('foo').discard();
> 
> Elias Torres wrote:
>> As I write a server implementation, I needed to remove links from an
>> existing entry. Can I do this today and I'm just missing a method? Or is
>> this in the TODO?
>>
>> -Elias
>>
> 

Re: Delete/Remove in API

Posted by James M Snell <ja...@gmail.com>.
Every element has a discard() method.  To remove a link, grab a
reference to it and call discard().

e.g. entry.getLink('foo').discard();

Elias Torres wrote:
> As I write a server implementation, I needed to remove links from an
> existing entry. Can I do this today and I'm just missing a method? Or is
> this in the TODO?
> 
> -Elias
>