2020-03-20 17:20:22 +01:00
|
|
|
|
|
|
|
package eu.eudat.models.rda;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Set;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Contributor Items Schema
|
|
|
|
* <p>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
|
|
@JsonPropertyOrder({
|
|
|
|
"contributor_id",
|
|
|
|
"mbox",
|
|
|
|
"name",
|
|
|
|
"role"
|
|
|
|
})
|
|
|
|
public class Contributor implements Serializable
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Contributor_id Schema
|
|
|
|
* <p>
|
|
|
|
*
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("contributor_id")
|
|
|
|
private ContributorId contributorId;
|
|
|
|
/**
|
|
|
|
* The Contributor Mailbox Schema
|
|
|
|
* <p>
|
|
|
|
* Contributor Mail address
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("mbox")
|
|
|
|
@JsonPropertyDescription("Contributor Mail address")
|
|
|
|
private String mbox;
|
|
|
|
/**
|
|
|
|
* The Name Schema
|
|
|
|
* <p>
|
|
|
|
* Name of the contributor
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("name")
|
|
|
|
@JsonPropertyDescription("Name of the contributor")
|
|
|
|
private String name;
|
|
|
|
/**
|
|
|
|
* The Role Schema
|
|
|
|
* <p>
|
|
|
|
* Type of contributor
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("role")
|
|
|
|
@JsonDeserialize(as = java.util.LinkedHashSet.class)
|
|
|
|
@JsonPropertyDescription("Type of contributor")
|
|
|
|
private Set<String> role = null;
|
|
|
|
@JsonIgnore
|
|
|
|
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
|
|
|
private final static long serialVersionUID = 3452606902359513114L;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Contributor_id Schema
|
|
|
|
* <p>
|
|
|
|
*
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("contributor_id")
|
|
|
|
public ContributorId getContributorId() {
|
|
|
|
return contributorId;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Contributor_id Schema
|
|
|
|
* <p>
|
|
|
|
*
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("contributor_id")
|
|
|
|
public void setContributorId(ContributorId contributorId) {
|
|
|
|
this.contributorId = contributorId;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Contributor Mailbox Schema
|
|
|
|
* <p>
|
|
|
|
* Contributor Mail address
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("mbox")
|
|
|
|
public String getMbox() {
|
|
|
|
return mbox;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Contributor Mailbox Schema
|
|
|
|
* <p>
|
|
|
|
* Contributor Mail address
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("mbox")
|
|
|
|
public void setMbox(String mbox) {
|
|
|
|
this.mbox = mbox;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Name Schema
|
|
|
|
* <p>
|
|
|
|
* Name of the contributor
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("name")
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Name Schema
|
|
|
|
* <p>
|
|
|
|
* Name of the contributor
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("name")
|
|
|
|
public void setName(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Role Schema
|
|
|
|
* <p>
|
|
|
|
* Type of contributor
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("role")
|
|
|
|
public Set<String> getRole() {
|
|
|
|
return role;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Role Schema
|
|
|
|
* <p>
|
|
|
|
* Type of contributor
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("role")
|
|
|
|
public void setRole(Set<String> role) {
|
|
|
|
this.role = role;
|
|
|
|
}
|
|
|
|
|
2021-12-17 15:21:32 +01:00
|
|
|
@JsonProperty("additional_properties")
|
2020-03-20 17:20:22 +01:00
|
|
|
public Map<String, Object> getAdditionalProperties() {
|
|
|
|
return this.additionalProperties;
|
|
|
|
}
|
|
|
|
|
2021-12-17 15:21:32 +01:00
|
|
|
@JsonProperty("additional_properties")
|
2020-03-20 17:20:22 +01:00
|
|
|
public void setAdditionalProperty(String name, Object value) {
|
|
|
|
this.additionalProperties.put(name, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|