1
2
3
4
5
6
7
8
9
10
11
12
13 package com.eviware.soapui.model.iface;
14
15 import java.util.List;
16
17 import javax.xml.namespace.QName;
18
19 import com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext;
20 import com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader;
21 import com.eviware.soapui.model.ModelItem;
22 import com.eviware.soapui.model.project.Project;
23
24 /***
25 * An Interface exposing operations
26 *
27 * @author Ole.Matzura
28 */
29
30 public interface Interface extends ModelItem
31 {
32 /***
33 * property for endpoint changes, propertychange messages will contain oldValue = null if an
34 * endpoint is added, newValue = null if an endpoint is removed and both values if an endpoint is
35 * modified.
36 */
37
38 public final static String ENDPOINT_PROPERTY = Interface.class.getName() + "@endpoint";
39
40 /***
41 * property for definition changes
42 */
43
44 public final static String DEFINITION_PROPERTY = Interface.class.getName() + "@definition";
45
46 public String [] getEndpoints();
47
48 public void addEndpoint( String endpoint );
49
50 public void removeEndpoint( String endpoint );
51
52 public void changeEndpoint( String oldEndpoint, String newEndpoint );
53
54 public Operation getOperationAt(int index);
55
56 public int getOperationCount();
57
58 public Operation getOperationByName(String name);
59
60 public Project getProject();
61
62 public String getDefinition();
63
64 public void addInterfaceListener( InterfaceListener listener );
65
66 public void removeInterfaceListener( InterfaceListener listener );
67
68 public MessageBuilder getMessageBuilder();
69
70 /***
71 * This shouldn't be here or refactored to an InterfaceContext interface..
72 */
73
74 public WsdlContext getWsdlContext();
75
76 public QName getBindingName();
77
78 public boolean isCached();
79
80 public WsdlLoader createWsdlLoader();
81
82 public List<Operation> getOperations();
83 }