cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: String property
Date Wed, 01 Sep 2010 16:20:28 GMT
Experiment with wsdl-first. Create an xml schema with a restricted
simple type using a facet. Use the JAXB code  generator to see what it
gives you.

Or, just use a java enum instead of a String.

On Wed, Sep 1, 2010 at 12:17 PM, fachhoch <fachhoch@gmail.com> wrote:
>
> In my request object I want user to pass a parameter  of type string , the
> value for this should be any value form a list of  values , is there any way
> I can specify the possible values  using jaxb  Annotaions ? I donot want to
> use enum  ,
>
>
> here is my
>
>  property
>
>
>        @XmlElement(required=true)
>        public String getOrg() {
>                return org;
>        }
>        public void setOrg(String org) {
>                this.org = org;
>        }
>
> the value of this property should be either A ,B or C  how can I  provide
> this information ?
> --
> View this message in context: http://cxf.547215.n5.nabble.com/String-property-tp2799561p2799561.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Mime
View raw message