Coverage Summary for Class: KitodoScriptTask (org.kitodo.production.workflow.model.beans)

Class Class, % Method, % Line, %
KitodoScriptTask 100% (1/1) 60% (3/5) 71,4% (5/7)


 /*
  * (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org>
  *
  * This file is part of the Kitodo project.
  *
  * It is licensed under GNU General Public License version 3 or later.
  *
  * For the full copyright and license information, please read the
  * GPL3-License.txt file that was distributed with this source code.
  */
 
 package org.kitodo.production.workflow.model.beans;
 
 import org.camunda.bpm.model.bpmn.instance.ScriptTask;
 
 public class KitodoScriptTask extends KitodoTask {
 
     private String scriptName;
     private String scriptPath;
 
     /**
      * Constructor.
      * 
      * @param scriptTask
      *            BPMN model task
      */
     public KitodoScriptTask(ScriptTask scriptTask) {
         super(scriptTask);
         this.scriptName = scriptTask.getAttributeValueNs(NAMESPACE, "scriptName");
         this.scriptPath = scriptTask.getAttributeValueNs(NAMESPACE, "scriptPath");
     }
 
     /**
      * Get scriptName.
      *
      * @return value of scriptName
      */
     public String getScriptName() {
         return scriptName;
     }
 
     /**
      * Set scriptName.
      *
      * @param scriptName
      *            as String
      */
     public void setScriptName(String scriptName) {
         this.scriptName = scriptName;
     }
 
     /**
      * Get scriptPath.
      *
      * @return value of scriptPath
      */
     public String getScriptPath() {
         return scriptPath;
     }
 
     /**
      * Set scriptPath.
      *
      * @param scriptPath
      *            as java.lang.String
      */
     public void setScriptPath(String scriptPath) {
         this.scriptPath = scriptPath;
     }
 }