001/* 002 * Copyright (c) 2006-2011 Nuxeo SA (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 * Nuxeo - initial API and implementation 011 * $Id: LifeCycleTypesDescriptor.java 20625 2007-06-17 07:21:00Z sfermigier $ 012 */ 013 014package org.nuxeo.ecm.core.lifecycle.extensions; 015 016import org.nuxeo.common.xmap.annotation.XNode; 017import org.nuxeo.common.xmap.annotation.XObject; 018 019/** 020 * Life cycle types mapping descriptor. 021 * 022 * @see org.nuxeo.ecm.core.lifecycle.impl.LifeCycleServiceImpl 023 * @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 024 */ 025@XObject(value = "type") 026public class LifeCycleTypesDescriptor { 027 @XNode("@name") 028 protected String name; 029 030 @XNode("@noRecursionForTransitions") 031 protected String noRecursionForTransitions; 032 033 @XNode 034 protected String type; 035 036 public String getDocumentType() { 037 return name; 038 } 039 040 public String getNoRecursionForTransitions() { 041 return noRecursionForTransitions; 042 } 043 044 public String getLifeCycleName() { 045 return type; 046 } 047 048}