blob: fac241c20e05f3b7716774900f9e368d3c390d14 [file] [log] [blame]
/*********************************************************************
* Copyright (c) 2011 Boeing
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Boeing - initial API and implementation
**********************************************************************/
package org.eclipse.osee.ats.core.workflow;
import java.util.List;
import org.eclipse.osee.ats.api.workdef.StateType;
import org.eclipse.osee.ats.api.workdef.StateTypeAdapter;
/**
* @author Donald G. Dunne
*/
public class OneStates extends StateTypeAdapter {
public static OneStates Endorse = new OneStates("Endorse", StateType.Working, "This is OneStates Endorse");
public static OneStates Cancelled = new OneStates("Cancelled", StateType.Cancelled);
public static OneStates Completed = new OneStates("Completed", StateType.Completed);
public OneStates(String pageName, StateType StateType) {
super(OneStates.class, pageName, StateType);
}
public OneStates(String pageName, StateType StateType, String description) {
super(OneStates.class, pageName, StateType);
setDescription(description);
}
public static OneStates valueOf(String pageName) {
return StateTypeAdapter.valueOfPage(OneStates.class, pageName);
}
public static List<OneStates> values() {
return StateTypeAdapter.pages(OneStates.class);
}
}