public abstract class CommandLineAction
extends java.lang.Object
Constructor and Description |
---|
CommandLineAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
dispose(ConsoleInterface console)
Wird aufgerufen wenn der Befehl verlassen wird
|
protected void |
execute(ConsoleInterface console)
Führt den eigentlichen Befehl aus
|
void |
execute(ConsoleInterface console,
CommandLineAction parent)
Führt den Befehl aus
|
java.util.List<? extends CommandLineAction> |
getChildren()
Gibt die Kindbefehle zurück
|
void |
printStatus(ConsoleInterface console)
Gibt einen Text vor der Auswahl der Aktion aus (zum überschreiben)
|
void |
skipParent() |
abstract java.lang.String |
toString()
Gibt den Befehlsnamen zurück
|
public final void execute(ConsoleInterface console, CommandLineAction parent)
console
- Konsoleparent
- Übergeordneter Befehl oder null falls es sich um die "Wurzel" handelt.public void printStatus(ConsoleInterface console) throws java.lang.Exception
console
- Konsolejava.lang.Exception
protected void execute(ConsoleInterface console) throws java.lang.Exception
console
- java.lang.Exception
protected void dispose(ConsoleInterface console) throws java.lang.Exception
console
- java.lang.Exception
public abstract java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<? extends CommandLineAction> getChildren()
public final void skipParent()