edu.bonn.xulu.plugin.appl
Class DataScriptInterpreter_Basic.Command_Rename

java.lang.Object
  extended by edu.bonn.xulu.plugin.appl.DataScriptInterpreter_Basic.Command_Rename
All Implemented Interfaces:
AbstractCommandInterpreter.Command
Enclosing class:
DataScriptInterpreter_Basic

protected class DataScriptInterpreter_Basic.Command_Rename
extends Object
implements AbstractCommandInterpreter.Command

Dieser Befehl aendert den Namen eines Xulu-Objekts im Datenpool.

Version:
1.0
Author:
Martin Schmitz (University of Bonn/Germany)

Constructor Summary
DataScriptInterpreter_Basic.Command_Rename(String objectName, String newObjectName)
          Erzeugt einen neuen Befehl.
 
Method Summary
 void check()
          Prueft, ob alle Parameter korrekt gesetzt sind.
 void execute(XuluModellingPlatform appl)
          Fuehrt den Befehl aus.
 String getDescription()
          Liefert eine Beschreibung des Kommandos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataScriptInterpreter_Basic.Command_Rename

public DataScriptInterpreter_Basic.Command_Rename(String objectName,
                                                  String newObjectName)
Erzeugt einen neuen Befehl.

Parameters:
objectName - Name des umzubenennenden Objekts
newObjectName - neuer Name
Method Detail

getDescription

public String getDescription()
Liefert eine Beschreibung des Kommandos.

Specified by:
getDescription in interface AbstractCommandInterpreter.Command

execute

public void execute(XuluModellingPlatform appl)
             throws Exception
Fuehrt den Befehl aus.

Specified by:
execute in interface AbstractCommandInterpreter.Command
Parameters:
appl - Applikation unter der der Befehl ausgefuehrt wird
Throws:
XuluDataException - falls es kein oder mehr als ein Objekt mit dem Namen im Datenpool gibt
Exception - wenn ein Fehler bei der Ausfuehrung aufritt

check

public void check()
Prueft, ob alle Parameter korrekt gesetzt sind. Ggf. wird eine Exception geworfen.

Specified by:
check in interface AbstractCommandInterpreter.Command