package com.tandbergtv.metadatamanager.model;

/**
 * This class represents an Item which is a leaf in a tree of Assets
 * 
 * @author ??
 */
public class Item extends Asset {

	private ItemType itemType;
	
	public Item(long id) {
		super();
		this.setId(id);
	}

	public Item() {
		super();
	}

	public String getType() {
		return itemType.name();
	}

	public void setType(String itemType) {
		this.itemType = ItemType.valueOf(itemType);
	}
	
	public void setType(ItemType itemType) {
		this.itemType = itemType;
	}

	public enum ItemType {
		CONTENT,
		PREVIEW,
		AUDIO,
		VIDEO,
		MOVIE,
		IMAGE,
		POSTER,
		BOXCOVER,
		DUMMY,
		TRICK,
		TITLE,
		CHAPTER,
		ENCRYPTED,
		BARKER,
		FILE
	}
}
