001: /**
002: * $Id: BindingOperationInputDescriptorImpl.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.BindingOperationInputDescriptor;
016:
017: /**
018: * This class represents an input BindingDescriptor. That is, it
019: * contains the information that would be specified in an input
020: * element contained within an operation element contained within a
021: * BindingDescriptor element.
022: *
023: */
024: public class BindingOperationInputDescriptorImpl implements
025: BindingOperationInputDescriptor {
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 BindingOperationInputDescriptor.
035: * @param use the SOAP encoding style ("encoded" or "literal")
036: * to use for the BindingOperationInputDescriptor.
037: * @param namespace the BindingOperationInputDescriptor namespace.
038: * @param encodingStyle the BindingOperationInputDescriptor encoding style.
039: */
040: public BindingOperationInputDescriptorImpl(String name, String use,
041: 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 BindingOperationInputDescriptor.
050: *
051: * @return the BindingOperationInputDescriptor 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 BindingOperationInputDescriptor.
060: *
061: * @return the BindingOperationInputDescriptor name.
062: */
063: public String getUse() {
064: return use;
065: }
066:
067: /**
068: * Get the the BindingOperationInputDescriptor namespace
069: *
070: * @return the BindingOperationInputDescriptor namespace.
071: */
072: public String getNamespace() {
073: return namespace;
074: }
075:
076: /**
077: * Get the the BindingOperationInputDescriptor Encoding Sytle.
078: *
079: * @return the BindingOperationInputDescriptor Encoding Sytle.
080: */
081: public String getEncodingStyle() {
082: return encodingStyle;
083: }
084:
085: /**
086: * Get the String representation of this BindingOperationInputDescriptor.
087: *
088: * @return the String representation of this BindingOperationInputDescriptor.
089: */
090: public String toString() {
091: StringBuffer strBuf = new StringBuffer();
092:
093: if (name != null) {
094: strBuf.append("\nBindingOperationInputDescriptor: 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: }
|