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

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

protected class DataScriptInterpreter_Basic.Command_ImportFromFile
extends Object
implements AbstractCommandInterpreter.Command

Dieser Befehl importiert ein neues Xulu-Objekts in den Datenpool.

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

Constructor Summary
DataScriptInterpreter_Basic.Command_ImportFromFile(String facName, File[] source, String objName, 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_ImportFromFile

public DataScriptInterpreter_Basic.Command_ImportFromFile(String facName,
                                                          File[] source,
                                                          String objName,
                                                          boolean dialog)
Erzeugt einen neuen Befehl.

Parameters:
facName - Bezeichnung der zu verwendenden ImportFactory
source - Eingabe-Dateien
objName - Bezeichnung des Objekts im Datenpool
dialog - bestimmt, ob ein Anwender-Dialog bei der Erzeugung 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