01: package abbot.script;
02:
03: import java.util.Map;
04:
05: import abbot.i18n.Strings;
06:
07: /** Placeholder step to indicate to a script that it should terminate.
08: Doesn't actually do anything itself.
09: */
10:
11: public class Terminate extends Step {
12:
13: private static final String USAGE = "<terminate/>";
14:
15: public Terminate(Resolver resolver, Map attributes) {
16: super (resolver, attributes);
17: }
18:
19: public Terminate(Resolver resolver, String description) {
20: super (resolver, description);
21: }
22:
23: public void runStep() {
24: // does nothing
25: }
26:
27: public String getDefaultDescription() {
28: return Strings.get("terminate.desc");
29: }
30:
31: public String getUsage() {
32: return USAGE;
33: }
34:
35: public String getXMLTag() {
36: return TAG_TERMINATE;
37: }
38: }
|