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.soapui.impl.wsdl.teststeps.registry;
14:
15: import com.eviware.soapui.config.TestStepConfig;
16: import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase;
17: import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep;
18:
19: /**
20: * Abstract factory behaviour for WsdlTestStep factories
21: *
22: * @author Ole.Matzura
23: */
24:
25: public abstract class WsdlTestStepFactory {
26: private final String typeName;
27: private final String name;
28: private final String description;
29: private final String pathToIcon;
30:
31: public WsdlTestStepFactory(String typeName, String name,
32: String description, String pathToIcon) {
33: this .typeName = typeName;
34: this .name = name;
35: this .description = description;
36: this .pathToIcon = pathToIcon;
37: }
38:
39: public abstract WsdlTestStep buildTestStep(WsdlTestCase testCase,
40: TestStepConfig config, boolean forLoadTest);
41:
42: public String getType() {
43: return typeName;
44: }
45:
46: public abstract TestStepConfig createNewTestStep(
47: WsdlTestCase testCase, String name);
48:
49: public abstract boolean canCreate();
50:
51: public String getTestStepName() {
52: return name;
53: }
54:
55: public String getTestStepDescription() {
56: return description;
57: }
58:
59: public String getTestStepIconPath() {
60: return pathToIcon;
61: }
62: }
|