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

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

protected class DataScriptInterpreter_Basic.Command_CopyStructure
extends Object
implements AbstractCommandInterpreter.Command

Dieser Befehl erzeugt ein neues Xulu-Objekts im Datenpool auf Basis eines bestehenden Objekts.

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

Constructor Summary
DataScriptInterpreter_Basic.Command_CopyStructure(String sampleName, String objectName, boolean dialog)
          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_CopyStructure

public DataScriptInterpreter_Basic.Command_CopyStructure(String sampleName,
                                                         String objectName,
                                                         boolean dialog)
Erzeugt einen neuen Befehl.

Parameters:
sampleName - Name des zu kopierenden Objekts
objectName - Bezeichnung des neuen Objekts im Datenpool
dialog - bestimmt, ob ein Anwender-Dialog beim Kopieren des Objekts angezeigt werden darf
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,
                    TypeMappingException,
                    XuluDataException
Fuehrt den Befehl aus.

Specified by:
execute in interface AbstractCommandInterpreter.Command
Parameters:
appl - Applikation unter der der Befehl ausgefuehrt wird
Throws:
TypeMappingException - falls keine InstantiationFactory fuer den Datentyp registriert ist.
XuluDataException - die gefundenen Factory kein XuluObject instanziiert
Exception - falls die Instanziierung des Objekts fehl schlaegt

check

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

Specified by:
check in interface AbstractCommandInterpreter.Command