001: /*
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU General Public License as published by the
009: * Free Software Foundation; either version 2 of the License, or (at your option)
010: * any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
014: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
015: * for more details.
016: *
017: * You should have received a copy of the GNU General Public License along with
018: * this program; if not, write to the Free Software Foundation, Inc.,
019: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: *
021: *
022: * $Id: FileOutput.java 3837 2006-12-14 21:11:05Z elu $
023: */
024: package com.bostechcorp.cbesb.runtime.component.file.wsdl;
025:
026: import java.io.Serializable;
027:
028: import javax.wsdl.extensions.ExtensibilityElement;
029: import javax.xml.namespace.QName;
030:
031: import com.bostechcorp.cbesb.runtime.component.util.wsdl.BaseCommonAttribute;
032:
033: /**
034: *
035: */
036: public class FileOutput extends BaseCommonAttribute implements
037: ExtensibilityElement, Serializable {
038:
039: /**
040: * Generated serial version UID.
041: */
042: private static final long serialVersionUID = -3821422281533486250L;
043:
044: /**
045: * required.
046: */
047: protected Boolean required;
048:
049: /**
050: * elementType.
051: */
052: protected QName elementType;
053:
054: /**
055: * Destination location for data files.
056: */
057: private String destDir;
058:
059: /**
060: * For reader: Staging directory where files are moved for processing.<p>
061: * For writer: Staging directory where files are created and written to.
062: */
063: private String stageDir;
064:
065: /**
066: * For reader: Value is the name of the charset to use to read in character data.<p>
067: * For writer: Value is the name of the charset to use to write character data to the
068: * file.
069: */
070: private String charset;
071:
072: /**
073: * Value determines how records are written to a file.
074: */
075: private String writeStyle;
076:
077: /**
078: * For reader: Glob style file pattern to determine which files in the Source
079: * directory will be processed.<p>
080: * For writer: Describes a file pattern to use to name the file when being written.
081: */
082: private String filePattern;
083:
084: /**
085: * Get the destDir.
086: *
087: * @return the destDir
088: */
089: public String getDestDir() {
090: return destDir;
091: }
092:
093: /**
094: * Set the destDir.
095: *
096: * @param destDir the destDir to set
097: */
098: public void setDestDir(String destDir) {
099: this .destDir = destDir;
100: }
101:
102: /**
103: * Get the stageDir.
104: *
105: * @return the stageDir
106: */
107: public String getStageDir() {
108: return stageDir;
109: }
110:
111: /**
112: * Set the stageDir.
113: *
114: * @param stageDir the stageDir to set
115: */
116: public void setStageDir(String stageDir) {
117: this .stageDir = stageDir;
118: }
119:
120: /**
121: * Get the charset.
122: *
123: * @return the charset
124: */
125: public String getCharset() {
126: return charset;
127: }
128:
129: /**
130: * Set the charset.
131: *
132: * @param charset the charset to set
133: */
134: public void setCharset(String charset) {
135: this .charset = charset;
136: }
137:
138: /**
139: * Get the writeStyle.
140: *
141: * @return the writeStyle
142: */
143: public String getWriteStyle() {
144: return writeStyle;
145: }
146:
147: /**
148: * Set the writeStyle.
149: *
150: * @param writeStyle the writeStyle to set
151: */
152: public void setWriteStyle(String writeStyle) {
153: this .writeStyle = writeStyle;
154: }
155:
156: /**
157: * Get the filePattern.
158: *
159: * @return the filePattern
160: */
161: public String getFilePattern() {
162: return filePattern;
163: }
164:
165: /**
166: * Set the filePattern.
167: *
168: * @param filePattern the filePattern to set
169: */
170: public void setFilePattern(String filePattern) {
171: this .filePattern = filePattern;
172: }
173:
174: /* (non-Javadoc)
175: * @see com.bostechcorp.cbesb.runtime.component.util.wsdl.BaseCommonAttribute#getElementType()
176: */
177: public QName getElementType() {
178: return elementType;
179: }
180:
181: /* (non-Javadoc)
182: * @see com.bostechcorp.cbesb.runtime.component.util.wsdl.BaseCommonAttribute#setElementType(javax.xml.namespace.QName)
183: */
184: public void setElementType(QName elementType) {
185: this .elementType = elementType;
186: }
187:
188: /* (non-Javadoc)
189: * @see com.bostechcorp.cbesb.runtime.component.util.wsdl.BaseCommonAttribute#getRequired()
190: */
191: public Boolean getRequired() {
192: return required;
193: }
194:
195: /* (non-Javadoc)
196: * @see com.bostechcorp.cbesb.runtime.component.util.wsdl.BaseCommonAttribute#setRequired(java.lang.Boolean)
197: */
198: public void setRequired(Boolean required) {
199: this .required = required;
200: }
201:
202: public String toString() {
203: return "FileOutput[" + "required=" + required + ", "
204: + "elementType=" + elementType + ", "
205: + super .toString() + "destDir=" + destDir + ", "
206: + "stageDir=" + stageDir + ", " + "charset=" + charset
207: + ", " + "writeStyle=" + writeStyle + ", "
208: + "filePattern=" + filePattern + "]";
209: }
210: }
|