/* * Copyright (C) 2005-2012 BetaCONCEPT Limited * * This file is part of Astroboa. * * Astroboa is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Astroboa is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Astroboa. If not, see <http://www.gnu.org/licenses/>. */ package org.betaconceptframework.astroboa.console.jsf.clipboard; import java.util.ArrayList; import java.util.List; /** * @author Gregory Chomatas (gchomatas@betaconcept.com) * @author Savvas Triantafyllou (striantafyllou@betaconcept.com) * */ public class ContentObjectItem { private String id; private String systemName; private String title; private String type; private String typeLabel; //Possible objects that may be attached to this clipboard item private List<Facet> facets = new ArrayList<Facet>(); public String getId() { return id; } public void setId(String id) { this.id = id; } public String getSystemName() { return systemName; } public void setSystemName(String systemName) { this.systemName = systemName; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getTypeLabel() { return typeLabel; } public void setTypeLabel(String typeLabel) { this.typeLabel = typeLabel; } public void addFacet(Object facetValue, String keyForLabel) throws Exception{ facets.add(new Facet(facetValue, keyForLabel)); } public List<Facet> getFacets(){ return facets; } }