View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2010 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.iface;
14  
15  import java.util.List;
16  
17  import com.eviware.soapui.impl.support.DefinitionContext;
18  import com.eviware.soapui.model.ModelItem;
19  import com.eviware.soapui.model.project.Project;
20  
21  /***
22   * An Interface exposing operations
23   * 
24   * @author Ole.Matzura
25   */
26  
27  public interface Interface extends ModelItem
28  {
29  	public final static String ENDPOINT_PROPERTY = Interface.class.getName() + "@endpoint";
30  
31  	public final static String DEFINITION_PROPERTY = Interface.class.getName() + "@definition";
32  
33  	public final static String UPDATING_PROPERTY = Interface.class.getName() + "@updating";
34  
35  	public String[] getEndpoints();
36  
37  	public Operation getOperationAt( int index );
38  
39  	public int getOperationCount();
40  
41  	public Operation getOperationByName( String name );
42  
43  	public Project getProject();
44  
45  	public void addInterfaceListener( InterfaceListener listener );
46  
47  	public void removeInterfaceListener( InterfaceListener listener );
48  
49  	public String getTechnicalId();
50  
51  	public List<Operation> getOperationList();
52  
53  	public String getInterfaceType();
54  
55  	public void addEndpoint( String endpoint );
56  
57  	public void removeEndpoint( String ep );
58  
59  	public void changeEndpoint( String endpoint, String string );
60  
61  	public DefinitionContext<?> getDefinitionContext();
62  
63  	public Operation[] getAllOperations();
64  }