01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: * See the GNU Lesser General Public License for more details at gnu.org.
11: */
12:
13: package com.eviware.x.form.support;
14:
15: import java.lang.annotation.ElementType;
16: import java.lang.annotation.Retention;
17: import java.lang.annotation.RetentionPolicy;
18: import java.lang.annotation.Target;
19:
20: /**
21: * A field in an AForm
22: *
23: * @author ole.matzura
24: */
25:
26: @Retention(RetentionPolicy.RUNTIME)
27: @Target(ElementType.FIELD)
28: public @interface AField {
29: public enum AFieldType {
30: BOOLEAN, STRING, FILE, FOLDER, INT, ENUMERATION, PASSWORD, FILELIST, RADIOGROUP, STRINGAREA, MULTILIST
31: }
32:
33: public String name();
34:
35: public String description();
36:
37: public AFieldType type() default AFieldType.STRING;
38:
39: public String group() default "";
40:
41: public String[] values() default "";
42:
43: public String defaultValue() default "";
44:
45: boolean enabled() default true;
46: }
|