01: /*
02: * $Id: Command.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: import org.concern.Controller;
17:
18: /**
19: * @author hengels
20: */
21: public abstract class Command implements Runnable {
22: protected String[] args;
23: protected Controller controller;
24: protected String usage;
25:
26: public void setController(Controller controller) {
27: this .controller = controller;
28: }
29:
30: public void setArguments(String[] args) {
31: this .args = args;
32: }
33:
34: public abstract void run();
35:
36: public String usage() {
37: return usage;
38: }
39: }
|