View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2010 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  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.soapui.settings;
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  @Retention( RetentionPolicy.RUNTIME )
21  @Target( ElementType.FIELD )
22  public @interface Setting
23  {
24  	public enum SettingType
25  	{
26  		BOOLEAN, STRING, FILE, FOLDER, INT, ENUMERATION, PASSWORD, CUSTOM, FILELIST, STRINGLIST
27  	}
28  
29  	public String name();
30  
31  	public String description();
32  
33  	public SettingType type() default SettingType.STRING;
34  
35  	public String[] values() default "";
36  
37  	public String defaultValue() default "";
38  
39  	public Class<? extends SettingHandler> customHandler() default SettingHandler.class;
40  }