001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)OperationBean.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.binding.jms;
030:
031: import javax.xml.namespace.QName;
032:
033: /**
034: * Stores the data related to an operation.
035: *
036: * @author Sun Microsystems Inc.
037: */
038: public final class OperationBean {
039: /**
040: * Input type.
041: */
042: private String mInputType;
043: /**
044: * MEP.
045: */
046: private String mMep;
047: /**
048: * Operation name.
049: */
050: private String mName;
051:
052: /**
053: * Operation namespace.
054: */
055: private String mNamespace;
056: /**
057: * Output type.
058: */
059: private String mOutputType;
060:
061: /**
062: * Creates a new OperationBean object.
063: */
064: public OperationBean() {
065: }
066:
067: /**
068: * Creates a new OperationBean object.
069: *
070: * @param namespace namespace.
071: * @param name name.
072: * @param mep mep.
073: * @param input input type.
074: * @param output putput type.
075: */
076: public OperationBean(String namespace, String name, String mep,
077: String input, String output) {
078: this .mName = name;
079: this .mMep = mep;
080: this .mInputType = input;
081: this .mOutputType = output;
082: this .mNamespace = namespace;
083: }
084:
085: /**
086: * Setter for property mInputType.
087: *
088: * @param mInputType New value of property mInputType.
089: */
090: public void setInputType(java.lang.String mInputType) {
091: this .mInputType = mInputType;
092: }
093:
094: /**
095: * Getter for property mInputType.
096: *
097: * @return Value of property mInputType.
098: */
099: public java.lang.String getInputType() {
100: return mInputType;
101: }
102:
103: /**
104: * Setter for property mMep.
105: *
106: * @param mMep New value of property mMep.
107: */
108: public void setMep(java.lang.String mMep) {
109: this .mMep = mMep;
110: }
111:
112: /**
113: * Getter for property mMep.
114: *
115: * @return Value of property mMep.
116: */
117: public java.lang.String getMep() {
118: return mMep;
119: }
120:
121: /**
122: * Setter for property mName.
123: *
124: * @param mName New value of property mName.
125: */
126: public void setName(java.lang.String mName) {
127: this .mName = mName;
128: }
129:
130: /**
131: * Getter for property mName.
132: *
133: * @return Value of property mName.
134: */
135: public java.lang.String getName() {
136: return mName;
137: }
138:
139: /**
140: * Sets the namespace.
141: *
142: * @param namespace namespace.
143: */
144: public void setNamespace(String namespace) {
145: this .mNamespace = namespace;
146: }
147:
148: /**
149: * Gets the operation namespace.
150: *
151: * @return namespace.
152: */
153: public String getNamespace() {
154: return this .mNamespace;
155: }
156:
157: /**
158: * Setter for property mOutputType.
159: *
160: * @param mOutputType New value of property mOutputType.
161: */
162: public void setOutputType(java.lang.String mOutputType) {
163: this .mOutputType = mOutputType;
164: }
165:
166: /**
167: * Getter for property mOutputType.
168: *
169: * @return Value of property mOutputType.
170: */
171: public java.lang.String getOutputType() {
172: return mOutputType;
173: }
174:
175: /**
176: * Gets the QName.
177: *
178: * @return returns the operation Qname.
179: */
180: public String getQName() {
181: QName qname = new QName(mNamespace, mName);
182:
183: return qname.toString();
184: }
185: }
|