001/* 002 * (C) Copyright 2006-2009 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 * Nuxeo 016 */ 017 018package org.nuxeo.ecm.platform.publisher.descriptors; 019 020import org.nuxeo.common.xmap.annotation.XNode; 021import org.nuxeo.common.xmap.annotation.XObject; 022import org.nuxeo.ecm.platform.publisher.api.PublicationTree; 023 024import java.io.Serializable; 025 026/** 027 * Descriptor of a PublicationTree. 028 * 029 * @author tiry 030 */ 031@XObject("publicationTree") 032public class PublicationTreeDescriptor implements Serializable { 033 034 private static final long serialVersionUID = 1L; 035 036 @XNode("@name") 037 private String name; 038 039 @XNode("@factory") 040 private String factory; 041 042 @XNode("@class") 043 private Class<? extends PublicationTree> klass; 044 045 public String getName() { 046 return name; 047 } 048 049 public void setName(String name) { 050 this.name = name; 051 } 052 053 public String getFactory() { 054 return factory; 055 } 056 057 public void setFactory(String factory) { 058 this.factory = factory; 059 } 060 061 public Class<? extends PublicationTree> getKlass() { 062 return klass; 063 } 064 065 public void setKlass(Class<? extends PublicationTree> klass) { 066 this.klass = klass; 067 } 068 069}