001: // Copyright (c) 2004-2005 Sun Microsystems Inc., All Rights Reserved.
002:
003: /*
004: * OperationBean.java
005: *
006: * SUN PROPRIETARY/CONFIDENTIAL.
007: * This software is the proprietary information of Sun Microsystems, Inc.
008: * Use is subject to license terms.
009: *
010: */
011: package com.sun.jbi.binding.file;
012:
013: import javax.xml.namespace.QName;
014:
015: /**
016: * Operation information.
017: *
018: * @author Sun Microsystems, Inc.
019: */
020: public final class OperationBean {
021: /**
022: * File extension.
023: */
024: private String mFileExtension;
025:
026: /**
027: * Input message type.
028: */
029: private String mInputType;
030:
031: /**
032: * Message exchange pattern.
033: */
034: private String mMep;
035:
036: /**
037: * Operation name.
038: */
039: private String mName;
040:
041: /**
042: * Namespace of operation.
043: */
044: private String mNamespace;
045:
046: /**
047: * Output file prefix.
048: */
049: private String mOutputFilePrefix;
050:
051: /**
052: * Output message type.
053: */
054: private String mOutputType;
055:
056: /**
057: * Creates a new OperationBean object.
058: */
059: public OperationBean() {
060: }
061:
062: /**
063: * Creates a new OperationBean object.
064: *
065: * @param namespace namespace uri
066: * @param name lcoal name
067: * @param mep mep
068: * @param input input type
069: * @param output output type
070: * @param ext file extension
071: * @param prefix prefix
072: */
073: public OperationBean(String namespace, String name, String mep,
074: String input, String output, String ext, String prefix) {
075: this .mName = name;
076: this .mMep = mep;
077: this .mInputType = input;
078: this .mOutputType = output;
079: this .mNamespace = namespace;
080: this .mFileExtension = ext;
081: this .mOutputFilePrefix = prefix;
082: }
083:
084: /**
085: * Setter for property mFileExtension.
086: *
087: * @param mFileExtension New value of property mFileExtension.
088: */
089: public void setFileExtension(java.lang.String mFileExtension) {
090: this .mFileExtension = mFileExtension;
091: }
092:
093: /**
094: * Getter for property mFileExtension.
095: *
096: * @return Value of property mFileExtension.
097: */
098: public java.lang.String getFileExtension() {
099: return mFileExtension;
100: }
101:
102: /**
103: * Setter for property mInputType.
104: *
105: * @param mInputType New value of property mInputType.
106: */
107: public void setInputType(java.lang.String mInputType) {
108: this .mInputType = mInputType;
109: }
110:
111: /**
112: * Getter for property mInputType.
113: *
114: * @return Value of property mInputType.
115: */
116: public java.lang.String getInputType() {
117: return mInputType;
118: }
119:
120: /**
121: * Setter for property mMep.
122: *
123: * @param mMep New value of property mMep.
124: */
125: public void setMep(java.lang.String mMep) {
126: this .mMep = mMep;
127: }
128:
129: /**
130: * Getter for property mMep.
131: *
132: * @return Value of property mMep.
133: */
134: public java.lang.String getMep() {
135: return mMep;
136: }
137:
138: /**
139: * Setter for property mName.
140: *
141: * @param mName New value of property mName.
142: */
143: public void setName(java.lang.String mName) {
144: this .mName = mName;
145: }
146:
147: /**
148: * Getter for property mName.
149: *
150: * @return Value of property mName.
151: */
152: public java.lang.String getName() {
153: return mName;
154: }
155:
156: /**
157: * Sets the namespace.
158: *
159: * @param namespace namespace uri.
160: */
161: public void setNamespace(String namespace) {
162: this .mNamespace = namespace;
163: }
164:
165: /**
166: * Returns the namespace uri.
167: *
168: * @return namsespace uri.
169: */
170: public String getNamespace() {
171: return this .mNamespace;
172: }
173:
174: /**
175: * Setter for property mOutputFilePrefix.
176: *
177: * @param mOutputFilePrefix New value of property mOutputFilePrefix.
178: */
179: public void setOutputFilePrefix(java.lang.String mOutputFilePrefix) {
180: this .mOutputFilePrefix = mOutputFilePrefix;
181: }
182:
183: /**
184: * Getter for property mOutputFilePrefix.
185: *
186: * @return Value of property mOutputFilePrefix.
187: */
188: public java.lang.String getOutputFilePrefix() {
189: return mOutputFilePrefix;
190: }
191:
192: /**
193: * Setter for property mOutputType.
194: *
195: * @param mOutputType New value of property mOutputType.
196: */
197: public void setOutputType(java.lang.String mOutputType) {
198: this .mOutputType = mOutputType;
199: }
200:
201: /**
202: * Getter for property mOutputType.
203: *
204: * @return Value of property mOutputType.
205: */
206: public java.lang.String getOutputType() {
207: return mOutputType;
208: }
209:
210: /**
211: * Returns the Qualified name for operation.
212: *
213: * @return qname of operation.
214: */
215: public String getQName() {
216: QName qname = new QName(mNamespace, mName);
217:
218: return qname.toString();
219: }
220: }
|