2018-02-20 08:39:31 +01:00
|
|
|
package org.gcube.nlphub.nlp;
|
|
|
|
|
|
|
|
public class NlpParameter {
|
|
|
|
public static String ANNOTATION_LIST = "annotations";
|
2018-03-15 15:40:50 +01:00
|
|
|
public static int INPUT_FILE = 0;
|
|
|
|
public static int INPUT_ANNOTATIONS = 1;
|
|
|
|
public static int INPUT_LANGUAGE = 2;
|
2018-02-20 08:39:31 +01:00
|
|
|
private String name, description;
|
|
|
|
private Object value;
|
|
|
|
private int objectType;
|
|
|
|
|
2018-03-15 15:40:50 +01:00
|
|
|
public NlpParameter() {
|
|
|
|
}
|
|
|
|
|
2018-02-20 08:39:31 +01:00
|
|
|
public NlpParameter(String name, String description, Object value, int objectType) {
|
|
|
|
this.name = name;
|
|
|
|
this.description = description;
|
|
|
|
this.value = value;
|
|
|
|
this.objectType = objectType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Object getValue() {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getObjectType() {
|
|
|
|
return objectType;
|
|
|
|
}
|
2018-03-15 15:40:50 +01:00
|
|
|
|
|
|
|
public void setName(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDescription(String description) {
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setValue(Object value) {
|
|
|
|
this.value = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setObjectType(int objectType) {
|
|
|
|
this.objectType = objectType;
|
|
|
|
}
|
2018-02-20 08:39:31 +01:00
|
|
|
}
|