package eu.dnetlib.r2d2.rmi;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="PublishedItem", namespace = "http://rmi.r2d2.dnetlib.eu/")
public class PublishedItem {
	private List<Profile> authors;
	private List<String> tags;
	private String iconUrl;
	private String itemUrl;
	private String title;
	private String description;

	@XmlElementWrapper(namespace = "http://rmi.r2d2.dnetlib.eu/", name = "authors")
	@XmlElement(namespace = "http://rmi.r2d2.dnetlib.eu/", name = "item")
	public List<Profile> getAuthors() {
		return authors;
	}

	public void setAuthors(List<Profile> authors) {
		this.authors = authors;
	}

	@XmlElementWrapper(namespace = "http://rmi.r2d2.dnetlib.eu/", name = "tags")
	@XmlElement(namespace = "http://rmi.r2d2.dnetlib.eu/", name = "item")
	public List<String> getTags() {
		return tags;
	}

	public void setTags(List<String> tags) {
		this.tags = tags;
	}

	@XmlElement(namespace = "http://rmi.r2d2.dnetlib.eu/")
	public String getIconUrl() {
		return iconUrl;
	}

	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}

	@XmlElement(namespace = "http://rmi.r2d2.dnetlib.eu/")
	public String getItemUrl() {
		return itemUrl;
	}

	public void setItemUrl(String itemUrl) {
		this.itemUrl = itemUrl;
	}

	@XmlElement(namespace = "http://rmi.r2d2.dnetlib.eu/")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@XmlElement(namespace = "http://rmi.r2d2.dnetlib.eu/")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
