On 27.01.11 15:59, "Alexander Klimetschek" <[email protected]> wrote:
>The "add" operation would be implemented as (pseudo code):
>
>Values[] v = prop.getValues();
>if (v contains "value1") {
>    v += "value1";
>)

Ah, this should of course be

if (not (v contains "value1")) {
    v += "value1";
)


Also, if we want to support lists as opposed to sets, the operations are
different and would be at least:

- insert val, pos
- remove pos

And could be arbitrarily extended to:
- append val
- prepend val
- remove val
- removeAll val
etc.

and I think in the list case it is better if the client gets the whole
list, edits it and sends it back. The main point of the set operations is
that the client does not need to know how the full set looks like, which
is what is the case in the bulk-editing scenario.

Regards,
Alex

-- 
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel




Reply via email to