001/* 002 * (C) Copyright 2006-2012 Nuxeo SA (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 * <a href=mailto:vpasquier@nuxeo.com>Vladimir Pasquier</a> 016 */ 017package org.nuxeo.ecm.platform.actions; 018 019import java.util.ArrayList; 020import java.util.List; 021 022import org.nuxeo.common.xmap.annotation.XNode; 023import org.nuxeo.common.xmap.annotation.XNodeList; 024import org.nuxeo.common.xmap.annotation.XObject; 025 026/** 027 * UI type action compatibility descriptor from category action 028 * 029 * @since 5.6 030 */ 031@XObject("typeCompatibility") 032public class TypeCompatibility { 033 034 @XNode("@type") 035 String type; 036 037 @XNodeList(value = "category", type = ArrayList.class, componentType = String.class) 038 private List<String> categories = new ArrayList<String>(); 039 040 public String getType() { 041 return type; 042 } 043 044 public void setType(String type) { 045 this.type = type; 046 } 047 048 public List<String> getCategories() { 049 return categories; 050 } 051 052 public void setCategories(List<String> categories) { 053 this.categories = categories; 054 } 055 056}