01: /*
02:
03: Loader - tool for transfering data from one JDBC source to another and
04: doing transformations during copy.
05:
06: Copyright (C) 2002 Together
07:
08: This library is free software; you can redistribute it and/or
09: modify it under the terms of the GNU Lesser General Public
10: License as published by the Free Software Foundation; either
11: version 2.1 of the License, or (at your option) any later version.
12:
13: This library is distributed in the hope that it will be useful,
14: but WITHOUT ANY WARRANTY; without even the implied warranty of
15: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: Lesser General Public License for more details.
17:
18: You should have received a copy of the GNU Lesser General Public
19: License along with this library; if not, write to the Free Software
20: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21:
22: Variables.java
23: Date: 03.07.2002.
24: @version 1.0
25: @author:
26: Milosevic Sinisa sinisami@eunet.yu
27: Radeka Dusan diradeka@neobee.net
28: */
29:
30: package org.webdocwf.util.loader.task;
31:
32: import org.apache.tools.ant.Task;
33:
34: /**
35: * Variables represents subelement variable of LoaderTask element.
36: * Variables element consists of one or more variable elements which represent
37: * variables used in variable columns in Loader input XML file (loaderJob).
38: */
39:
40: public class Variables extends Task {
41: public String variables;
42:
43: /**
44: * The setter for the "Variable" tag
45: **/
46: public void addConfiguredVariable(Variable anInner) {
47: this .variables += anInner.name + "=" + anInner.value + ";";
48: }
49:
50: }
|