01: /**
02: * $Id: ServiceDescriptor.java,v 1.5 2003/06/03 10:49:22 sy131129 Exp $
03: * Copyright 2002-2003 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.providers.simplewebservice.wsdl;
14:
15: import java.util.Map;
16:
17: /**
18: * This interface represents a service, which groups related
19: * ports to provide some functionality.
20: *
21: */
22: public interface ServiceDescriptor {
23:
24: /**
25: * Get the name of this ServiceDescriptor.
26: *
27: * @return the ServiceDescriptor name.
28: */
29: public String getName();
30:
31: /**
32: * Get the documentation text for this ServiceDescriptor.
33: *
34: * @return the ServiceDescriptor documentation text.
35: */
36: public String getDocumentation();
37:
38: /**
39: * Get the specified PortDescriptor.
40: *
41: * @param name the name of the desired PortDescriptor.
42: * @return the corresponding PortDescriptor, or null if there wasn't
43: * any matching PortDescriptor.
44: */
45: public PortDescriptor getPortDescriptor(String name);
46:
47: /**
48: * Get all the PortDescriptor defined here.
49: *
50: * @return all the PortDescriptors.
51: */
52: public Map getPortDescriptors();
53:
54: }
|