66 lines
1.1 KiB
Java
66 lines
1.1 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.vremanagement.executor.plugin;
|
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonProperty;
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonTypeName;
|
|
import org.gcube.vremanagement.executor.json.SEMapper;
|
|
|
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property=SEMapper.CLASS_PROPERTY)
|
|
@JsonTypeName(value="Ref")
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
*/
|
|
public class Ref {
|
|
|
|
@JsonProperty
|
|
protected String id;
|
|
|
|
@JsonProperty
|
|
protected String address;
|
|
|
|
protected Ref() {}
|
|
|
|
/**
|
|
* @param id
|
|
* @param address
|
|
*/
|
|
public Ref(String id, String address) {
|
|
super();
|
|
this.id = id;
|
|
this.address = address;
|
|
}
|
|
|
|
/**
|
|
* @return the id
|
|
*/
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
/**
|
|
* @param id the id to set
|
|
*/
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
/**
|
|
* @return the address
|
|
*/
|
|
public String getAddress() {
|
|
return address;
|
|
}
|
|
|
|
/**
|
|
* @param address the address to set
|
|
*/
|
|
public void setAddress(String address) {
|
|
this.address = address;
|
|
}
|
|
|
|
|
|
|
|
} |