001/*
002 * (C) Copyright 2006-2008 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     troger
018 *
019 * $Id$
020 */
021
022package org.nuxeo.ecm.platform.annotations.gwt.client.configuration;
023
024import java.util.Map;
025
026import com.google.gwt.user.client.rpc.IsSerializable;
027
028/**
029 * @author <a href="mailto:troger@nuxeo.com">Thomas Roger</a>
030 */
031public class AnnotationDefinition implements IsSerializable {
032
033    private String uri;
034
035    private String name;
036
037    private String icon;
038
039    private String type;
040
041    private String listIcon;
042
043    private String createIcon;
044
045    private Boolean inMenu;
046
047    private Map<String, String[]> fields;
048
049    public AnnotationDefinition() {
050
051    }
052
053    public AnnotationDefinition(String uri, String name, String icon, String type) {
054        this.uri = uri;
055        this.name = name;
056        this.icon = icon;
057        this.type = type;
058    }
059
060    public AnnotationDefinition(String uri, String name, String icon, String type, String listIcon, String createIcon,
061            Boolean inMenu, Map<String, String[]> fields) {
062        this.uri = uri;
063        this.name = name;
064        this.icon = icon;
065        this.type = type;
066        this.listIcon = listIcon;
067        this.createIcon = createIcon;
068        this.inMenu = inMenu;
069        this.fields = fields;
070    }
071
072    public String getUri() {
073        return uri;
074    }
075
076    public void setUri(String uri) {
077        this.uri = uri;
078    }
079
080    public String getName() {
081        return name;
082    }
083
084    public void setName(String name) {
085        this.name = name;
086    }
087
088    public String getIcon() {
089        return icon;
090    }
091
092    public void setIcon(String icon) {
093        this.icon = icon;
094    }
095
096    public void setType(String type) {
097        this.type = type;
098    }
099
100    public String getType() {
101        return type;
102    }
103
104    public void setListIcon(String listIcon) {
105        this.listIcon = listIcon;
106    }
107
108    public String getListIcon() {
109        return listIcon;
110    }
111
112    public void setCreateIcon(String createIcon) {
113        this.createIcon = createIcon;
114    }
115
116    public String getCreateIcon() {
117        return createIcon;
118    }
119
120    public void setInMenu(Boolean inMenu) {
121        this.inMenu = inMenu;
122    }
123
124    public Boolean isInMenu() {
125        return inMenu;
126    }
127
128    public void setFields(Map<String, String[]> fields) {
129        this.fields = fields;
130    }
131
132    public Map<String, String[]> getFields() {
133        return fields;
134    }
135
136}