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.rendering;
016
017import java.util.ArrayList;
018import java.util.Collection;
019
020import org.nuxeo.common.xmap.annotation.XNode;
021import org.nuxeo.common.xmap.annotation.XNodeList;
022import org.nuxeo.common.xmap.annotation.XObject;
023import org.nuxeo.theme.types.Type;
024import org.nuxeo.theme.types.TypeFamily;
025
026@XObject("renderer")
027public final class RendererType implements Type {
028
029    @XNode("@element")
030    public String name;
031
032    @XNodeList(value = "filter", type = ArrayList.class, componentType = String.class)
033    public Collection<String> filters;
034
035    public String getTypeName() {
036        return name;
037    }
038
039    public TypeFamily getTypeFamily() {
040        return TypeFamily.RENDERER;
041    }
042
043    public Collection<String> getFilters() {
044        return filters;
045    }
046
047}