001: /**
002: * $Id: BindingOperationOutputDescriptorImpl.java,v 1.5 2003/06/03 10:49:23 sy131129 Exp $
003: * Copyright 2002-2003 Sun Microsystems, Inc. All
004: * rights reserved. Use of this product is subject
005: * to license terms. Federal Acquisitions:
006: * Commercial Software -- Government Users
007: * Subject to Standard License Terms and
008: * Conditions.
009: *
010: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
011: * are trademarks or registered trademarks of Sun Microsystems,
012: * Inc. in the United States and other countries.
013: */package com.sun.portal.providers.simplewebservice.wsdl.impl;
014:
015: import com.sun.portal.providers.simplewebservice.wsdl.BindingOperationOutputDescriptor;
016:
017: /**
018: * This class represents an output BindingDescriptor. That is, it
019: * contains the information that would be specified in an output element
020: * contained within an operation element contained within a
021: * BindingDescriptor element.
022: *
023: */
024: public class BindingOperationOutputDescriptorImpl implements
025: BindingOperationOutputDescriptor {
026: private String name = null;
027: private String use = null;
028: private String namespace = null;
029: private String encodingStyle = null;
030:
031: /**
032: * Default constructor.
033: *
034: * @param name the name of the BindingOperationOutputDescriptor.
035: * @param use the SOAP encoding style ("encoded" or "literal")
036: * to use for the BindingOperationOutputDescriptor.
037: * @param namespace the BindingOperationOutputDescriptor namespace.
038: * @param encodingStyle the BindingOperationOutputDescriptor encoding style.
039: */
040: public BindingOperationOutputDescriptorImpl(String name,
041: String use, String namespace, String encodingStyle) {
042: this .name = name;
043: this .use = use;
044: this .namespace = namespace;
045: this .encodingStyle = encodingStyle;
046: }
047:
048: /**
049: * Get the name of this BindingOperationOutputDescriptor.
050: *
051: * @return the BindingOperationOutputDescriptor name.
052: */
053: public String getName() {
054: return name;
055: }
056:
057: /**
058: * Get the SOAP encoding style ("encoded" or "literal")
059: * to use for the BindingOperationOutputDescriptor.
060: *
061: * @return the BindingOperationOutputDescriptor name.
062: */
063: public String getUse() {
064: return use;
065: }
066:
067: /**
068: * Get the the BindingOperationOutputDescriptor namespace
069: *
070: * @return the BindingOperationOutputDescriptor namespace.
071: */
072: public String getNamespace() {
073: return namespace;
074: }
075:
076: /**
077: * Get the the BindingOperationOutputDescriptor Encoding Sytle.
078: *
079: * @return the BindingOperationOutputDescriptor Encoding Sytle.
080: */
081: public String getEncodingStyle() {
082: return encodingStyle;
083: }
084:
085: /**
086: * Get the String representation of this BindingOperationOutputDescriptor.
087: *
088: * @return the String representation of this BindingOperationOutputDescriptor.
089: */
090: public String toString() {
091: StringBuffer strBuf = new StringBuffer();
092:
093: if (name != null) {
094: strBuf.append("\nBindingOperationOutputDescriptor: name="
095: + name);
096: }
097:
098: if (use != null) {
099: strBuf.append("\nuse=" + use);
100: }
101:
102: if (namespace != null) {
103: strBuf.append("\nnamespace=" + namespace);
104: }
105:
106: if (encodingStyle != null) {
107: strBuf.append("\nencodingStyle=" + encodingStyle);
108: }
109:
110: return strBuf.toString();
111: }
112: }
|