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$
012 */
013
014package org.nuxeo.ecm.core.lifecycle.impl;
015
016import org.nuxeo.ecm.core.lifecycle.LifeCycleTransition;
017
018/**
019 * Life cycle transition implementation.
020 *
021 * @see org.nuxeo.ecm.core.lifecycle.LifeCycleTransition
022 * @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a>
023 */
024public class LifeCycleTransitionImpl implements LifeCycleTransition {
025
026    /** Name of the transition. */
027    private final String name;
028
029    /** Description of the transition. */
030    private final String description;
031
032    /** Destination state name for this transition. */
033    private final String destinationStateName;
034
035    public LifeCycleTransitionImpl(String name, String description, String destinationState) {
036        this.name = name;
037        this.description = description;
038        destinationStateName = destinationState;
039    }
040
041    @Override
042    public String getDestinationStateName() {
043        return destinationStateName;
044    }
045
046    @Override
047    public String getDescription() {
048        return description;
049    }
050
051    @Override
052    public String getName() {
053        return name;
054    }
055
056}