users@jaxb.java.net

Re: Serializing a transformed value

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Fri, 19 Feb 2010 07:54:35 +0100

JAXB expects standard Java Beans getters and setters, so it is not
prepared to use arguments when calling getters. You'll have to devise
some way of setting the locale when you construct the object tree, and
provide another getter without argument.

-W

On Fri, Feb 19, 2010 at 3:46 AM, MakMak <powgri_at_gmail.com> wrote:

>
> Hi,
>
> I have a java object called DateParameter which has
> a field - "value" and
> a method getDisplayValue(Locale).
> When this is serialized, I want the displayvalue to be serialized rather
> than the internal value but I dont know how to pass Locale info to the JAXB
> system. Is it possible at all?
>
> I am using JAXB with annotations in webservices designed using Jersey.
>
> -thanks a lot!
>
> --
> View this message in context:
> http://old.nabble.com/Serializing-a-transformed-value-tp27649120p27649120.html
> Sent from the java.net - jaxb users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>