Also I'd add to Property<T> a method:
  <U> U getValue();
That would do the same (we cannot use <T> here).

Florent

On Thu, Oct 7, 2010 at 5:20 PM, Florent Guillaume <[email protected]> wrote:
> Hi,
>
> I don't think I got comments on this earlier proposal I made:
>
> I don't like this part of the CmisObject API and find it hard to use:
>   <T> T getPropertyValue(String id);
>   <T> List<T> getPropertyMultivalue(String id);
>
> I propose to change it to:
>   <T> T getPropertyValue(String id);
>
> Which would returns a single value for a single-valued property, and a
> List for a multi-valued property. If the client knew which of the two
> methods to call, then it knows if it expects a List or not so it
> doesn't change expressivity.
>
> I haven't yet tried to do the changes in the code but I don't
> anticipate too many difficulties. What do you think?
>
> Florent
>
> --
> Florent Guillaume, Director of R&D, Nuxeo
> Open Source, Java EE based, Enterprise Content Management (ECM)
> http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87
>



-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87

Reply via email to