users@jersey.java.net

Re: [Fwd: Re: Collection serialization in RESTful service]

From: Nam Nguyen <Nam.Nguyen_at_Sun.COM>
Date: Tue, 23 Oct 2007 10:37:39 -0700

Hi Paul,

Thanks for pointing this out. I thought I was already but obviously I
was not.

We use the Inflector to singularize/pluralize names:
http://www.netbeans.org/source/browse/websvc/rest/src/org/netbeans/modules/websvc/rest/support/Inflector.java?rev=1.2&view=auto&content-type=text/vnd.viewcvs-markup
<http://www.netbeans.org/source/browse/websvc/rest/src/org/netbeans/modules/websvc/rest/support/Inflector.java>

There is a small adjustment that we need to make, see singularize() in:
http://www.netbeans.org/source/browse/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/Util.java?rev=1.24.2.5&view=markup
<http://www.netbeans.org/source/browse/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/Util.java?rev=1.24.2.5&view=markup>

-Nam

Paul Sandoz wrote:
> Hi,
>
> IIRC you guys are only subscribed to the dev list. I recommend
> subscribing to the users list as well if not already.
>
> Paul.
>
>
> ------------------------------------------------------------------------
>
> Subject:
> Re: Collection serialization in RESTful service
> From:
> Marc Hadley <Marc.Hadley_at_Sun.COM>
> Date:
> Tue, 23 Oct 2007 10:20:26 -0400
> To:
> users_at_jersey.dev.java.net
>
> To:
> users_at_jersey.dev.java.net
>
>
> On Oct 23, 2007, at 10:16 AM, Paul Sandoz wrote:
>> I need some pluralizer code that given a singular word returns the
>> plural. I suppose i could append an 's', know of anything better i
>> could use?
>>
> The NetBeans module has some code to do that, perhaps someone from
> that team can give a pointer.
>
> Marc
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>