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.model.project;
14:
15: import java.io.IOException;
16: import java.util.List;
17:
18: import com.eviware.soapui.model.ModelItem;
19: import com.eviware.soapui.model.iface.Interface;
20: import com.eviware.soapui.model.mock.MockService;
21: import com.eviware.soapui.model.testsuite.TestSuite;
22: import com.eviware.soapui.model.workspace.Workspace;
23:
24: /**
25: * A SoapUI project
26: *
27: * @author Ole.Matzura
28: */
29:
30: public interface Project extends ModelItem {
31: /** The id of the JBossWS project nature */
32: public static final String JBOSSWS_NATURE_ID = "com.eviware.soapui.jbosside.jbosswsNature";
33:
34: /** The id of the SoapUI project nature */
35: public static final String SOAPUI_NATURE_ID = "com.eviware.soapui.soapuiNature";
36:
37: public Workspace getWorkspace();
38:
39: public Interface getInterfaceAt(int index);
40:
41: public Interface getInterfaceByName(String interfaceName);
42:
43: public int getInterfaceCount();
44:
45: public void addProjectListener(ProjectListener listener);
46:
47: public void removeProjectListener(ProjectListener listener);
48:
49: public int getTestSuiteCount();
50:
51: public TestSuite getTestSuiteAt(int index);
52:
53: public TestSuite getTestSuiteByName(String testSuiteName);
54:
55: public TestSuite addNewTestSuite(String name);
56:
57: public int getMockServiceCount();
58:
59: public MockService getMockServiceAt(int index);
60:
61: public MockService getMockServiceByName(String mockServiceName);
62:
63: public MockService addNewMockService(String name);
64:
65: public boolean save() throws IOException;
66:
67: public List<TestSuite> getTestSuites();
68:
69: public List<MockService> getMockServices();
70:
71: public boolean hasNature(String natureId);
72:
73: public void release();
74: }
|