01: /**
02: * $Id: MessageDescriptor.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: import java.util.List;
17:
18: /**
19: * This interface describes a message used for communication with an operation.
20: *
21: */
22: public interface MessageDescriptor {
23:
24: /**
25: * Get the name of this MessageDescriptor.
26: *
27: * @return the MessageDescriptor name.
28: */
29: public String getName();
30:
31: /**
32: * Get the specified PartDescriptor.
33: *
34: * @param name the name of the desired PartDescriptor.
35: *
36: * @return the corresponding PartDescriptor, or null if there wasn't
37: * any matching PartDescriptor.
38: */
39: public PartDescriptor getPartDescriptor(String name);
40:
41: /**
42: * Get all the PartDescriptor defined here.
43: *
44: * @return all the PartDescriptors.
45: */
46: public Map getPartDescriptors();
47:
48: /**
49: * Get an ordered list of PartDescriptor names.
50: *
51: * @return the list of PartDescriptor names.
52: */
53: public List getOrderedPartDescriptors();
54: }
|