/**
* Copyright (C) 2015 Envidatec GmbH <info@envidatec.com>
*
* This file is part of JECommons.
*
* JECommons is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation in version 3.
*
* JECommons is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* JECommons. If not, see <http://www.gnu.org/licenses/>.
*
* JECommons is part of the OpenJEVis project, further project information are
* published at <http://www.OpenJEVis.org/>.
*/
package org.jevis.commons.dataprocessing;
/**
*
* @author Florian Simon <florian.simon@envidatec.com>
*/
public class BasicProcessOption implements ProcessOption {
private String key;
private String value;
public BasicProcessOption(JsonProcessOption json) {
this.key = json.getKey();
this.value = json.getValue();
}
public BasicProcessOption(String key, String value) {
this.key = key;
this.value = value;
}
public BasicProcessOption(String key) {
this.key = key;
}
@Override
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public String getKey() {
return key;
}
}