KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > serviceapi > ServiceInterface


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.modules.serviceapi;
20
21 import java.util.Collection JavaDoc;
22 import javax.xml.namespace.QName JavaDoc;
23 import org.openide.nodes.Node;
24
25 /**
26  * Represents the service view of a web service interface.
27  * The service view defines the provider or consumer side of the interface.
28  *
29  * @author Nam Nguyen
30  * @author Chris Webster
31  * @author Jiri Kopsa
32  */

33 public interface ServiceInterface {
34     // maybe needed for JBI or other underlying technology
35
// <T extends Object> T getCookie(Class<T> type);
36

37     /**
38      * Returns the description of the service interface.
39      */

40     InterfaceDescription getInterfaceDescription();
41     
42     /**
43      * Returns service component exposing this service interface.
44      */

45     ServiceComponent getServiceComponent();
46
47     /**
48      * Whether provider-consumer relationship is possible between this
49      * service interface and the given service interface.
50      */

51     boolean canConnect(ServiceInterface other);
52
53     /**
54      * @return true if this service interface is of providing nature;
55      * return false if it is of consuming nature.
56      */

57     boolean isProvider();
58
59     /**
60      * @return the visual representation of this service interface.
61      */

62     Node getNode();
63 }
64
Popular Tags