001/*
002 * (C) Copyright 2006-2007 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.presets;
016
017import org.nuxeo.common.xmap.annotation.XNode;
018import org.nuxeo.common.xmap.annotation.XObject;
019import org.nuxeo.theme.types.Type;
020import org.nuxeo.theme.types.TypeFamily;
021
022@XObject("palette")
023public class PaletteType implements Type {
024
025    @XNode("@name")
026    private String name;
027
028    @XNode("@src")
029    private String src;
030
031    @XNode("@category")
032    private String category = "";
033
034    public PaletteType() {
035    }
036
037    public PaletteType(String name, String src, String category) {
038        super();
039        this.name = name;
040        this.src = src;
041        this.category = category;
042    }
043
044    public TypeFamily getTypeFamily() {
045        return TypeFamily.PALETTE;
046    }
047
048    public String getCategory() {
049        return category;
050    }
051
052    public String getTypeName() {
053        return name;
054    }
055
056    public String getSrc() {
057        return src;
058    }
059
060    public String getName() {
061        return name;
062    }
063
064}