dataminer-invocation-model/src/main/java/org/gcube/data/analysis/dminvocation/model/DataMinerParam.java

112 lines
1.6 KiB
Java

/**
*
*/
package org.gcube.data.analysis.dminvocation.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* The Class DataMinerParam.
*
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
* Dec 4, 2018
*/
@XmlRootElement(name = "param")
@XmlAccessorType (XmlAccessType.FIELD)
public class DataMinerParam {
private String key;
private String value;
/**
* Instantiates a new data miner param.
*/
public DataMinerParam() {
// TODO Auto-generated constructor stub
}
/**
* Instantiates a new data miner param.
*
* @param key the key
* @param value the value
*/
public DataMinerParam(String key, String value) {
super();
this.key = key;
this.value = value;
}
/**
* Gets the key.
*
* @return the key
*/
public String getKey() {
return key;
}
/**
* Gets the value.
*
* @return the value
*/
public String getValue() {
return value;
}
/**
* Sets the key.
*
* @param key the key to set
*/
public void setKey(String key) {
this.key = key;
}
/**
* Sets the value.
*
* @param value the value to set
*/
public void setValue(String value) {
this.value = value;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("DataMinerParam [key=");
builder.append(key);
builder.append(", value=");
builder.append(value);
builder.append("]");
return builder.toString();
}
}