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.file;
030:
031: import javax.xml.namespace.QName;
032:
033: /**
034: * Operation information.
035: *
036: * @author Sun Microsystems, Inc.
037: */
038: public final class OperationBean {
039: /**
040: * File extension.
041: */
042: private String mFileExtension;
043:
044: /**
045: * Input message type.
046: */
047: private String mInputType;
048:
049: /**
050: * Message exchange pattern.
051: */
052: private String mMep;
053:
054: /**
055: * Operation name.
056: */
057: private String mName;
058:
059: /**
060: * Namespace of operation.
061: */
062: private String mNamespace;
063:
064: /**
065: * Output file prefix.
066: */
067: private String mOutputFilePrefix;
068:
069: /**
070: * Output message type.
071: */
072: private String mOutputType;
073:
074: /**
075: * Creates a new OperationBean object.
076: */
077: public OperationBean() {
078: }
079:
080: /**
081: * Creates a new OperationBean object.
082: *
083: * @param namespace namespace uri
084: * @param name lcoal name
085: * @param mep mep
086: * @param input input type
087: * @param output output type
088: * @param ext file extension
089: * @param prefix prefix
090: */
091: public OperationBean(String namespace, String name, String mep,
092: String input, String output, String ext, String prefix) {
093: this .mName = name;
094: this .mMep = mep;
095: this .mInputType = input;
096: this .mOutputType = output;
097: this .mNamespace = namespace;
098: this .mFileExtension = ext;
099: this .mOutputFilePrefix = prefix;
100: }
101:
102: /**
103: * Setter for property mFileExtension.
104: *
105: * @param mFileExtension New value of property mFileExtension.
106: */
107: public void setFileExtension(java.lang.String mFileExtension) {
108: this .mFileExtension = mFileExtension;
109: }
110:
111: /**
112: * Getter for property mFileExtension.
113: *
114: * @return Value of property mFileExtension.
115: */
116: public java.lang.String getFileExtension() {
117: return mFileExtension;
118: }
119:
120: /**
121: * Setter for property mInputType.
122: *
123: * @param mInputType New value of property mInputType.
124: */
125: public void setInputType(java.lang.String mInputType) {
126: this .mInputType = mInputType;
127: }
128:
129: /**
130: * Getter for property mInputType.
131: *
132: * @return Value of property mInputType.
133: */
134: public java.lang.String getInputType() {
135: return mInputType;
136: }
137:
138: /**
139: * Setter for property mMep.
140: *
141: * @param mMep New value of property mMep.
142: */
143: public void setMep(java.lang.String mMep) {
144: this .mMep = mMep;
145: }
146:
147: /**
148: * Getter for property mMep.
149: *
150: * @return Value of property mMep.
151: */
152: public java.lang.String getMep() {
153: return mMep;
154: }
155:
156: /**
157: * Setter for property mName.
158: *
159: * @param mName New value of property mName.
160: */
161: public void setName(java.lang.String mName) {
162: this .mName = mName;
163: }
164:
165: /**
166: * Getter for property mName.
167: *
168: * @return Value of property mName.
169: */
170: public java.lang.String getName() {
171: return mName;
172: }
173:
174: /**
175: * Sets the namespace.
176: *
177: * @param namespace namespace uri.
178: */
179: public void setNamespace(String namespace) {
180: this .mNamespace = namespace;
181: }
182:
183: /**
184: * Returns the namespace uri.
185: *
186: * @return namsespace uri.
187: */
188: public String getNamespace() {
189: return this .mNamespace;
190: }
191:
192: /**
193: * Setter for property mOutputFilePrefix.
194: *
195: * @param mOutputFilePrefix New value of property mOutputFilePrefix.
196: */
197: public void setOutputFilePrefix(java.lang.String mOutputFilePrefix) {
198: this .mOutputFilePrefix = mOutputFilePrefix;
199: }
200:
201: /**
202: * Getter for property mOutputFilePrefix.
203: *
204: * @return Value of property mOutputFilePrefix.
205: */
206: public java.lang.String getOutputFilePrefix() {
207: return mOutputFilePrefix;
208: }
209:
210: /**
211: * Setter for property mOutputType.
212: *
213: * @param mOutputType New value of property mOutputType.
214: */
215: public void setOutputType(java.lang.String mOutputType) {
216: this .mOutputType = mOutputType;
217: }
218:
219: /**
220: * Getter for property mOutputType.
221: *
222: * @return Value of property mOutputType.
223: */
224: public java.lang.String getOutputType() {
225: return mOutputType;
226: }
227:
228: /**
229: * Returns the Qualified name for operation.
230: *
231: * @return qname of operation.
232: */
233: public String getQName() {
234: QName qname = new QName(mNamespace, mName);
235:
236: return qname.toString();
237: }
238:
239: }
|