001/*
002 * (C) Copyright 2006-2009 Nuxeo SAS <http://nuxeo.com> and others
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 *
009 * Contributors:
010 *     Jean-Marc Orliaguet, Chalmers
011 *
012 * $Id$
013 */
014
015package org.nuxeo.theme.resources;
016
017public class ImageInfo {
018    private String name;
019
020    private String collection;
021
022    public ImageInfo(String name, String collection) {
023        this.name = name;
024        this.collection = collection;
025    }
026
027    public String getPath() {
028        return String.format("%s/%s", collection, name);
029    }
030
031    public String getName() {
032        return name;
033    }
034
035    public void setName(String name) {
036        this.name = name;
037    }
038
039    public String getCollection() {
040        return collection;
041    }
042
043    public void setCollection(String collection) {
044        this.collection = collection;
045    }
046
047}