01: /**
02: * $Id: OperationDescriptorImpl.java,v 1.5 2003/06/03 10:49:23 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.impl;
14:
15: import com.sun.portal.providers.simplewebservice.wsdl.OperationDescriptor;
16:
17: /**
18: * This class represents a WSDL operation. It includes information
19: * on input, output messages associated with usage of the operation.
20: *
21: */
22: public class OperationDescriptorImpl implements OperationDescriptor {
23:
24: private String name = null;
25: private String inputMessageDescriptorName = null;
26: private String outputMessageDescriptorName = null;
27:
28: /**
29: * Default Constructor.
30: *
31: * @param name the name of the OperationDescriptor.
32: * @param inputMessageDescriptorName the name of the Input MessageDescriptor that is part of the OperationDescriptor.
33: * @param outputMessageDescriptorName the name of the Output MessageDescriptor that is part of the OperationDescriptor.
34: */
35: public OperationDescriptorImpl(String name,
36: String inputMessageDescriptorName,
37: String outputMessageDescriptorName) {
38: this .name = name;
39: this .inputMessageDescriptorName = inputMessageDescriptorName;
40: this .outputMessageDescriptorName = outputMessageDescriptorName;
41: }
42:
43: /**
44: * Get the name of this OperationDescriptor.
45: *
46: * @return the OperationDescriptor name.
47: */
48: public String getName() {
49: return name;
50: }
51:
52: /**
53: * Get the Input MessageDescriptor name for this OperationDescriptor.
54: *
55: * @return the Input MessageDescriptor name.
56: */
57: public String getInputMessageDescriptorName() {
58: return inputMessageDescriptorName;
59: }
60:
61: /**
62: * Get the Output MessageDescriptor name for this OperationDescriptor.
63: *
64: * @return the Output MessageDescriptor name.
65: */
66: public String getOutputMessageDescriptorName() {
67: return outputMessageDescriptorName;
68: }
69:
70: /**
71: * Get the String representation of this DefinitionDescriptor.
72: *
73: * @return the String representation of this DefinitionDescriptor.
74: */
75: public String toString() {
76: StringBuffer strBuf = new StringBuffer();
77:
78: strBuf.append("\nOperationDescriptor: name=" + name);
79:
80: if (inputMessageDescriptorName != null) {
81: strBuf.append(", Input MessageDescriptor name="
82: + inputMessageDescriptorName);
83: }
84:
85: if (outputMessageDescriptorName != null) {
86: strBuf.append(", Output MessageDescriptor name="
87: + outputMessageDescriptorName);
88: }
89:
90: return strBuf.toString();
91: }
92: }
|