View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2007 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", 
26  			type=SettingType.BOOLEAN )
27  	public final static String CACHE_WSDLS = WsdlSettings.class.getSimpleName() + "@" + "cache-wsdls";
28  
29  	@Setting( name="Sample Values", description="generate example values in new requests", type=SettingType.BOOLEAN )
30  	public final static String XML_GENERATION_TYPE_EXAMPLE_VALUE = WsdlSettings.class.getSimpleName() + "@" + "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() + "@" + "xml-generation-type-comment-type";
34  	
35  	@Setting( name="Include Optional", description="always include optional schema elements when creating requests", type=SettingType.BOOLEAN )
36  	public final static String XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS = WsdlSettings.class.getSimpleName() + "@" + "xml-generation-always-include-optional-elements";
37  	
38  	@Setting( name="Pretty Print", description="pretty print response messages", type=SettingType.BOOLEAN )
39  	public final static String PRETTY_PRINT_RESPONSE_MESSAGES = WsdlSettings.class.getSimpleName() + "@" + "pretty-print-response-xml";
40  
41  	@Setting( name="Attachment Parts", description="generate rpc message parts for attachments", type=SettingType.BOOLEAN )
42  	public final static String ATTACHMENT_PARTS = WsdlSettings.class.getSimpleName() + "@" + "attachment-parts";
43  
44  	@Setting( name="No Content-Type Validation", description="allow incorrect content-types in mime-attachments", type=SettingType.BOOLEAN )
45  	public final static String ALLOW_INCORRECT_CONTENTTYPE = WsdlSettings.class.getSimpleName() + "@" + "allow-incorrect-contenttype";
46  
47  	public final static String ENABLE_MTOM = WsdlSettings.class.getSimpleName() + "@" + "enable-mtom";
48  
49  	@Setting( name="Schema Directory", description="local directory containing schemas that should be added to loading/validation", type=SettingType.FOLDER )
50  	public static final String SCHEMA_DIRECTORY = WsdlSettings.class.getSimpleName() + "@" + "schema-directory";
51  
52  	@Setting( name="Name with Binding", description="uses the WSDL binding name (instead of portType) for imported Interfaces", type=SettingType.BOOLEAN )
53  	public final static String NAME_WITH_BINDING = WsdlSettings.class.getSimpleName() + "@" + "name-with-binding";
54  
55  	@Setting( name="Excluded types", description="types to exclude in request generation", type=SettingType.STRINGLIST)
56  	public final static String EXCLUDED_TYPES = WsdlSettings.class.getSimpleName() + "@" + "excluded-types";
57  	
58  //	@Setting( name="Always Attachments", description="always allow attachments despite of definition", type=SettingType.BOOLEAN )
59  //	public final static String ALWAYS_ALLOW_ATTACHMENTS = WsdlSettings.class.getSimpleName() + "@" + "always-allow-attachments";
60  
61  	
62  //	public enum XmlGenerationType {
63  //		EMPTY,
64  //		TYPE_AS_COMMENT,
65  //		EXAMPLE_VALUES
66  //	}
67  }