001/*
002 * (C) Copyright 2006-2008 Nuxeo SAS (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     troger
016 *
017 * $Id$
018 */
019
020package org.nuxeo.ecm.platform.annotations.gwt.client.configuration;
021
022import java.util.Map;
023
024import com.google.gwt.user.client.rpc.IsSerializable;
025
026/**
027 * @author <a href="mailto:troger@nuxeo.com">Thomas Roger</a>
028 */
029public class AnnotationDefinition implements IsSerializable {
030
031    private String uri;
032
033    private String name;
034
035    private String icon;
036
037    private String type;
038
039    private String listIcon;
040
041    private String createIcon;
042
043    private Boolean inMenu;
044
045    private Map<String, String[]> fields;
046
047    public AnnotationDefinition() {
048
049    }
050
051    public AnnotationDefinition(String uri, String name, String icon, String type) {
052        this.uri = uri;
053        this.name = name;
054        this.icon = icon;
055        this.type = type;
056    }
057
058    public AnnotationDefinition(String uri, String name, String icon, String type, String listIcon, String createIcon,
059            Boolean inMenu, Map<String, String[]> fields) {
060        this.uri = uri;
061        this.name = name;
062        this.icon = icon;
063        this.type = type;
064        this.listIcon = listIcon;
065        this.createIcon = createIcon;
066        this.inMenu = inMenu;
067        this.fields = fields;
068    }
069
070    public String getUri() {
071        return uri;
072    }
073
074    public void setUri(String uri) {
075        this.uri = uri;
076    }
077
078    public String getName() {
079        return name;
080    }
081
082    public void setName(String name) {
083        this.name = name;
084    }
085
086    public String getIcon() {
087        return icon;
088    }
089
090    public void setIcon(String icon) {
091        this.icon = icon;
092    }
093
094    public void setType(String type) {
095        this.type = type;
096    }
097
098    public String getType() {
099        return type;
100    }
101
102    public void setListIcon(String listIcon) {
103        this.listIcon = listIcon;
104    }
105
106    public String getListIcon() {
107        return listIcon;
108    }
109
110    public void setCreateIcon(String createIcon) {
111        this.createIcon = createIcon;
112    }
113
114    public String getCreateIcon() {
115        return createIcon;
116    }
117
118    public void setInMenu(Boolean inMenu) {
119        this.inMenu = inMenu;
120    }
121
122    public Boolean isInMenu() {
123        return inMenu;
124    }
125
126    public void setFields(Map<String, String[]> fields) {
127        this.fields = fields;
128    }
129
130    public Map<String, String[]> getFields() {
131        return fields;
132    }
133
134}