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.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: * property for endpoint changes, propertychange messages will contain oldValue = null if an
33: * endpoint is added, newValue = null if an endpoint is removed and both values if an endpoint is
34: * modified.
35: */
36:
37: public final static String ENDPOINT_PROPERTY = Interface.class
38: .getName()
39: + "@endpoint";
40:
41: /**
42: * property for definition changes
43: */
44:
45: public final static String DEFINITION_PROPERTY = Interface.class
46: .getName()
47: + "@definition";
48:
49: public String[] getEndpoints();
50:
51: public void addEndpoint(String endpoint);
52:
53: public void removeEndpoint(String endpoint);
54:
55: public void changeEndpoint(String oldEndpoint, String newEndpoint);
56:
57: public Operation getOperationAt(int index);
58:
59: public int getOperationCount();
60:
61: public Operation getOperationByName(String name);
62:
63: public Project getProject();
64:
65: public String getDefinition();
66:
67: public void addInterfaceListener(InterfaceListener listener);
68:
69: public void removeInterfaceListener(InterfaceListener listener);
70:
71: public MessageBuilder getMessageBuilder();
72:
73: public WsdlContext getWsdlContext();
74:
75: public QName getBindingName();
76:
77: public boolean isCached();
78:
79: public WsdlLoader createWsdlLoader();
80:
81: public List<Operation> getOperations();
82: }
|