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 <[email protected]> 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.
>

Reply via email to