public abstract class CommandLineAction
extends java.lang.Object
Befehl im Benutzerverwaltungs-/Migrationstool
| Modifier and Type | Field and Description |
|---|---|
private CommandLineAction |
_parent |
private boolean |
_skip |
| 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() |
private java.lang.String |
stack() |
abstract java.lang.String |
toString()
Gibt den Befehlsnamen zurück
|
private CommandLineAction _parent
private boolean _skip
public final void execute(ConsoleInterface console, CommandLineAction parent)
Führt den Befehl aus
console - Konsoleparent - Übergeordneter Befehl oder null falls es sich um die “Wurzel” handelt.public void printStatus(ConsoleInterface console) throws java.lang.Exception
Gibt einen Text vor der Auswahl der Aktion aus (zum überschreiben)
console - Konsolejava.lang.Exceptionprivate java.lang.String stack()
protected void execute(ConsoleInterface console) throws java.lang.Exception
Führt den eigentlichen Befehl aus
console - java.lang.Exceptionprotected void dispose(ConsoleInterface console) throws java.lang.Exception
Wird aufgerufen wenn der Befehl verlassen wird
console - java.lang.Exceptionpublic abstract java.lang.String toString()
Gibt den Befehlsnamen zurück
toString in class java.lang.Objectpublic java.util.List<? extends CommandLineAction> getChildren()
Gibt die Kindbefehle zurück
public final void skipParent()