01: /*
02: * $Id: BatchCommand.java 674 2006-10-06 12:15:59Z hengels $
03: * (c) Copyright 2004 con:cern development team.
04: *
05: * This file is part of con:cern (http://concern.sf.net).
06: *
07: * con:cern is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU Lesser General Public License
09: * as published by the Free Software Foundation; either version 2.1
10: * of the License, or (at your option) any later version.
11: *
12: * Please see COPYING for the complete licence.
13: */
14: package org.concern.client.commandline;
15:
16: /**
17: * @version $Revision: 674 $
18: */
19: public class BatchCommand extends Command {
20: Command[] commands;
21:
22: public Command[] getCommands() {
23: return commands;
24: }
25:
26: public void setCommands(Command[] commands) {
27: this .commands = commands;
28: }
29:
30: public void run() {
31: for (int i = 0; i < commands.length; i++) {
32: Command command = commands[i];
33: command.setController(controller);
34: command.run();
35: }
36: }
37: }
|