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.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  {
    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> getTestSuites();
    69
    70  	public List<MockService> getMockServices();
    71
    72  	public List<Interface> getInterfaces();
    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  }