package zutil.net.ws; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * This class is used as an return Object for a web service. * If an class implements this interface then it can return * multiple values through the SOAPInterface. Example: *
 * 	private static class TestObject implements WSObject{
 *		@SOAPFieldName("name")
 *		public String name;
 *		@SOAPFieldName("lastname")
 *		public String lastname;
 *
 *		public TestObject(String n, String l){
 *			name = n;
 *			lastname = l;
 *		}
 *	}
 * 
* * @author Ziver * */ public interface WSObject{ /** * Specifies the name of a field. * The fields that are available in the service should * be declared public. * * @author Ziver */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface WSFieldName { String value(); boolean optional() default false; } /** * This generates an documentation tag in the * WSDL for the object type * * @author Ziver */ /* @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface WSDLDocumentation { String value(); }*/ }