1
2
3
4
5
6
7
8
9
10
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.TestModelItem;
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 TestModelItem
31 {
32 /*** The id of the JBossWS project nature */
33 public static final String JBOSSWS_NATURE_ID = "com.eviware.soapui.jbosside.jbosswsNature";
34
35 /*** The id of the SoapUI project nature */
36 public static final String SOAPUI_NATURE_ID = "com.eviware.soapui.soapuiNature";
37
38 public Workspace getWorkspace();
39
40 public Interface getInterfaceAt(int index);
41
42 public Interface getInterfaceByName( String interfaceName );
43
44 public int getInterfaceCount();
45
46 public void addProjectListener( ProjectListener listener );
47
48 public void removeProjectListener( ProjectListener listener );
49
50 public int getTestSuiteCount();
51
52 public TestSuite getTestSuiteAt( int index );
53
54 public TestSuite getTestSuiteByName( String testSuiteName );
55
56 public TestSuite addNewTestSuite(String name);
57
58 public int getMockServiceCount();
59
60 public MockService getMockServiceAt( int index );
61
62 public MockService getMockServiceByName( String mockServiceName );
63
64 public MockService addNewMockService(String name);
65
66 public boolean save() throws IOException;
67
68 public List<TestSuite> getTestSuiteList();
69
70 public List<MockService> getMockServiceList();
71
72 public List<Interface> getInterfaceList();
73
74 public boolean hasNature(String natureId);
75
76 public EndpointStrategy getEndpointStrategy();
77
78 public void release();
79
80 public boolean isOpen();
81
82 public boolean isDisabled();
83
84 public String getPath();
85 }