KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > webdocwf > util > loader > task > Variables


1 /*
2
3      Loader - tool for transfering data from one JDBC source to another and
4      doing transformations during copy.
5
6     Copyright (C) 2002 Together
7
8     This library is free software; you can redistribute it and/or
9     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
31 package org.webdocwf.util.loader.task;
32
33 import org.apache.tools.ant.Task;
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 JavaDoc variables;
42
43   
44   /**
45   * The setter for the "Variable" tag
46   **/

47   public void addConfiguredVariable(Variable anInner) {
48         this.variables += anInner.name + "=" + anInner.value + ";";
49   }
50
51   
52 }
53
54
Popular Tags