001: /*
002: * soapUI, copyright (C) 2004-2007 eviware.com
003: *
004: * soapUI is free software; you can redistribute it and/or modify it under the
005: * terms of version 2.1 of the GNU Lesser General Public License as published by
006: * the Free Software Foundation.
007: *
008: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
009: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
010: * See the GNU Lesser General Public License for more details at gnu.org.
011: */
012:
013: package com.eviware.soapui.settings;
014:
015: import com.eviware.soapui.settings.Setting.SettingType;
016:
017: /**
018: * WSDL related settings constants
019: *
020: * @author Emil.Breding
021: */
022:
023: public interface WsdlSettings {
024: @Setting(name="Cache WSDLs",description="caches and associated WSDLs locally for offline access and improved performance",type=SettingType.BOOLEAN)
025: public final static String CACHE_WSDLS = WsdlSettings.class
026: .getSimpleName()
027: + "@" + "cache-wsdls";
028:
029: @Setting(name="Sample Values",description="generate example values in new requests",type=SettingType.BOOLEAN)
030: public final static String XML_GENERATION_TYPE_EXAMPLE_VALUE = WsdlSettings.class
031: .getSimpleName()
032: + "@" + "xml-generation-type-example-value";
033:
034: @Setting(name="Type Comment",description="generate comments with type information in new requests",type=SettingType.BOOLEAN)
035: public final static String XML_GENERATION_TYPE_COMMENT_TYPE = WsdlSettings.class
036: .getSimpleName()
037: + "@" + "xml-generation-type-comment-type";
038:
039: @Setting(name="Include Optional",description="always include optional schema elements when creating requests",type=SettingType.BOOLEAN)
040: public final static String XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS = WsdlSettings.class
041: .getSimpleName()
042: + "@" + "xml-generation-always-include-optional-elements";
043:
044: @Setting(name="Pretty Print",description="pretty print response messages",type=SettingType.BOOLEAN)
045: public final static String PRETTY_PRINT_RESPONSE_MESSAGES = WsdlSettings.class
046: .getSimpleName()
047: + "@" + "pretty-print-response-xml";
048:
049: @Setting(name="Attachment Parts",description="generate rpc message parts for attachments",type=SettingType.BOOLEAN)
050: public final static String ATTACHMENT_PARTS = WsdlSettings.class
051: .getSimpleName()
052: + "@" + "attachment-parts";
053:
054: @Setting(name="No Content-Type Validation",description="allow incorrect content-types in mime-attachments",type=SettingType.BOOLEAN)
055: public final static String ALLOW_INCORRECT_CONTENTTYPE = WsdlSettings.class
056: .getSimpleName()
057: + "@" + "allow-incorrect-contenttype";
058:
059: public final static String ENABLE_MTOM = WsdlSettings.class
060: .getSimpleName()
061: + "@" + "enable-mtom";
062:
063: @Setting(name="Schema Directory",description="local directory containing schemas that should be added to loading/validation",type=SettingType.FOLDER)
064: public static final String SCHEMA_DIRECTORY = WsdlSettings.class
065: .getSimpleName()
066: + "@" + "schema-directory";
067:
068: @Setting(name="Name with Binding",description="uses the WSDL binding name (instead of portType) for imported Interfaces",type=SettingType.BOOLEAN)
069: public final static String NAME_WITH_BINDING = WsdlSettings.class
070: .getSimpleName()
071: + "@" + "name-with-binding";
072:
073: @Setting(name="Excluded types",description="types to exclude in request generation",type=SettingType.STRINGLIST)
074: public final static String EXCLUDED_TYPES = WsdlSettings.class
075: .getSimpleName()
076: + "@" + "excluded-types";
077:
078: @Setting(name="Strict schema types",description="fails schema imports if types/particles are redefined",type=SettingType.BOOLEAN)
079: public final static String STRICT_SCHEMA_TYPES = WsdlSettings.class
080: .getSimpleName()
081: + "@" + "strict-schema-types";
082:
083: @Setting(name="Compression Limit",description="minimum message size to compress",type=SettingType.INT)
084: public final static String COMPRESSION_LIMIT = WsdlSettings.class
085: .getSimpleName()
086: + "@" + "compression-limit";
087:
088: @Setting(name="Pretty Print Project Files",description="pretty prints project files",type=SettingType.BOOLEAN)
089: public final static String PRETTY_PRINT_PROJECT_FILES = WsdlSettings.class
090: .getSimpleName()
091: + "@" + "pretty-print-project-files";
092:
093: // @Setting( name="Always Attachments", description="always allow attachments despite of definition", type=SettingType.BOOLEAN )
094: // public final static String ALWAYS_ALLOW_ATTACHMENTS = WsdlSettings.class.getSimpleName() + "@" + "always-allow-attachments";
095:
096: // public enum XmlGenerationType {
097: // EMPTY,
098: // TYPE_AS_COMMENT,
099: // EXAMPLE_VALUES
100: // }
101: }
|