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

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

protected class DataScriptInterpreter_Basic.Command_LoadMapping
extends Object
implements AbstractCommandInterpreter.Command

F�hrt mittels eines Skripts ein Mapping von Ressourcen auf ein Modell durch

Version:
1.0
Author:
Dominik Appl - University of Bonn/Germany

Constructor Summary
DataScriptInterpreter_Basic.Command_LoadMapping(String scriptPath, String modelName)
          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_LoadMapping

public DataScriptInterpreter_Basic.Command_LoadMapping(String scriptPath,
                                                       String modelName)
Erzeugt einen neuen Befehl.

Parameters:
modelName - Name des (geladenen) Modells
scriptPath - Pfad zu dem Skript das das Mapping durch f�hrt
See Also:
ModelResourceMappingScriptInterpreter_Basic
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:
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