All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.annotations.providers.jaxb.Wrapped Maven / Gradle / Ivy

package org.jboss.resteasy.annotations.providers.jaxb;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Put this on a method or parameter when you want to marshal or unmarshal a collection or array of JAXB objects
 * 

* i.e. *

*

 *
 * @author Bill Burke
 * @version $Revision: 1 $
 * @PUT
 * @Consumes("application/xml") public void put(@Wrapped User[] users);
 * 
*

* User is a jaxb annotated class. The input should be: *

* * ... * ... *

* *

* or * @GET * @Wrapped public User[] getUsers(); */ @Target({ElementType.PARAMETER, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface Wrapped { String element() default "collection"; String namespace() default ""; String prefix() default ""; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy