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