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 com.eviware.soapui.settings.Setting.SettingType;
16  
17  /***
18   * WSDL related settings constants
19   * 
20   * @author Emil.Breding
21   */
22  
23  public interface WsdlSettings
24  {
25  	@Setting( name = "Cache WSDLs", description = "caches and associated WSDLs locally for offline access and improved performance", type = SettingType.BOOLEAN )
26  	public final static String CACHE_WSDLS = WsdlSettings.class.getSimpleName() + "@" + "cache-wsdls";
27  
28  	@Setting( name = "Sample Values", description = "generate example values in new requests", type = SettingType.BOOLEAN )
29  	public final static String XML_GENERATION_TYPE_EXAMPLE_VALUE = WsdlSettings.class.getSimpleName() + "@"
30  			+ "xml-generation-type-example-value";
31  
32  	@Setting( name = "Type Comment", description = "generate comments with type information in new requests", type = SettingType.BOOLEAN )
33  	public final static String XML_GENERATION_TYPE_COMMENT_TYPE = WsdlSettings.class.getSimpleName() + "@"
34  			+ "xml-generation-type-comment-type";
35  
36  	@Setting( name = "Include Optional", description = "always include optional schema elements when creating requests", type = SettingType.BOOLEAN )
37  	public final static String XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS = WsdlSettings.class.getSimpleName()
38  			+ "@" + "xml-generation-always-include-optional-elements";
39  
40  	@Setting( name = "Pretty Print", description = "pretty print response messages", type = SettingType.BOOLEAN )
41  	public final static String PRETTY_PRINT_RESPONSE_MESSAGES = WsdlSettings.class.getSimpleName() + "@"
42  			+ "pretty-print-response-xml";
43  
44  	@Setting( name = "Attachment Parts", description = "generate rpc message parts for attachments", type = SettingType.BOOLEAN )
45  	public final static String ATTACHMENT_PARTS = WsdlSettings.class.getSimpleName() + "@" + "attachment-parts";
46  
47  	@Setting( name = "No Content-Type Validation", description = "allow incorrect content-types in mime-attachments", type = SettingType.BOOLEAN )
48  	public final static String ALLOW_INCORRECT_CONTENTTYPE = WsdlSettings.class.getSimpleName() + "@"
49  			+ "allow-incorrect-contenttype";
50  
51  	public final static String ENABLE_MTOM = WsdlSettings.class.getSimpleName() + "@" + "enable-mtom";
52  
53  	@Setting( name = "Schema Directory", description = "local directory containing schemas that should be added to loading/validation", type = SettingType.FOLDER )
54  	public static final String SCHEMA_DIRECTORY = WsdlSettings.class.getSimpleName() + "@" + "schema-directory";
55  
56  	@Setting( name = "Name with Binding", description = "uses the WSDL binding name (instead of portType) for imported Interfaces", type = SettingType.BOOLEAN )
57  	public final static String NAME_WITH_BINDING = WsdlSettings.class.getSimpleName() + "@" + "name-with-binding";
58  
59  	@Setting( name = "Excluded types", description = "types to exclude in request generation", type = SettingType.STRINGLIST )
60  	public final static String EXCLUDED_TYPES = WsdlSettings.class.getSimpleName() + "@" + "excluded-types";
61  
62  	@Setting( name = "Strict schema types", description = "fails schema imports if types/particles are redefined", type = SettingType.BOOLEAN )
63  	public final static String STRICT_SCHEMA_TYPES = WsdlSettings.class.getSimpleName() + "@" + "strict-schema-types";
64  
65  	@Setting( name = "Compression Limit", description = "minimum message size to compress", type = SettingType.INT )
66  	public final static String COMPRESSION_LIMIT = WsdlSettings.class.getSimpleName() + "@" + "compression-limit";
67  
68  	@Setting( name = "Pretty Print Project Files", description = "pretty prints project files", type = SettingType.BOOLEAN )
69  	public final static String PRETTY_PRINT_PROJECT_FILES = WsdlSettings.class.getSimpleName() + "@"
70  			+ "pretty-print-project-files";
71  
72  	public static final String XML_GENERATION_SKIP_COMMENTS = WsdlSettings.class.getSimpleName() + "@"
73  			+ "xml-generation-skip-comments";
74  
75  	// @Setting( name="Always Attachments",
76  	// description="always allow attachments despite of definition",
77  	// type=SettingType.BOOLEAN )
78  	// public final static String ALWAYS_ALLOW_ATTACHMENTS =
79  	// WsdlSettings.class.getSimpleName() + "@" + "always-allow-attachments";
80  
81  	// public enum XmlGenerationType {
82  	// EMPTY,
83  	// TYPE_AS_COMMENT,
84  	// EXAMPLE_VALUES
85  	// }
86  }