90 lines
1.7 KiB
Java
90 lines
1.7 KiB
Java
package com.inteligr8.alfresco.activiti.model;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
@JsonPropertyOrder({
|
|
"name",
|
|
"type",
|
|
"value"
|
|
})
|
|
public class Variable {
|
|
|
|
@JsonProperty("name")
|
|
private String name;
|
|
@JsonProperty("scope")
|
|
private String scope;
|
|
@JsonProperty("type")
|
|
private String type;
|
|
@JsonProperty("value")
|
|
private Object value;
|
|
|
|
/**
|
|
* No args constructor for use in serialization
|
|
*/
|
|
public Variable() {
|
|
}
|
|
|
|
public Variable(String name, String scope, String type, Object value) {
|
|
this.name = name;
|
|
this.scope = scope;
|
|
this.type = type;
|
|
this.value = value;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public Variable withName(String name) {
|
|
this.name = name;
|
|
return this;
|
|
}
|
|
|
|
public String getScope() {
|
|
return scope;
|
|
}
|
|
|
|
public void setScope(String scope) {
|
|
this.scope = scope;
|
|
}
|
|
|
|
public Variable withScope(String scope) {
|
|
this.scope = scope;
|
|
return this;
|
|
}
|
|
|
|
public String getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public Variable withType(String type) {
|
|
this.type = type;
|
|
return this;
|
|
}
|
|
|
|
public Object getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setValue(Object value) {
|
|
this.value = value;
|
|
}
|
|
|
|
public Variable withValue(Object value) {
|
|
this.value = value;
|
|
return this;
|
|
}
|
|
|
|
}
|