package eu.dnetlib.r2d2.neo4j.domain;

import java.util.Collection;

/**
 * struct Item {
	1: string id,
	2: string title,
	3: list<Author> authors,
	5: Url iconUrl,
	6: Url itemUrl,
	7: string description
	}
 * @author antleb
 *
 */
public class Neo4jItem extends Neo4jInformationObject {
	public final static String TITLE = "title";
	public final static String ICON_URL = "iconUrl";
	public final static String ITEM_URL = "itemUrl";
	public final static String DESCRIPTION = "description";
	public final static String EXT_AUTHORS = "extAuthors";
	
	public String getTitle() {
		return (String) this.getValue(TITLE);
	}
	
	public void setTitle(String title) {
		this.setValue(TITLE, title);
	}
	
	public String getIconUrl() {
		return (String) this.getValue(ICON_URL);
	}
	
	public void setIconUrl(String iconUrl) {
		this.setValue(ICON_URL, iconUrl);
	}
	
	public String getItemUrl() {
		return (String) this.getValue(ITEM_URL);
	}
	
	public void setItemUrl(String itemUrl) {
		this.setValue(ITEM_URL, itemUrl);
	}
	
	public String getDescription() {
		return (String) this.getValue(DESCRIPTION);
	}
	
	public void setDescription(String description) {
		this.setValue(DESCRIPTION, description);
	}
	
	public String[] getExtAuthors() {
		return (String[]) this.getValue(EXT_AUTHORS);
	}
	
	public void setExtAuthors(Collection<String> extAuthors) {
		setExtAuthors(extAuthors.toArray(new String[] {}));
	}
	
	public void setExtAuthors(String[] extAuthors) {
		this.setValue(EXT_AUTHORS, extAuthors);
	}
}
