/******************************************************************************* * Copyright (c) 2006-2012 * Software Technology Group, Dresden University of Technology * DevBoost GmbH, Berlin, Amtsgericht Charlottenburg, HRB 140026 * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Software Technology Group - TU Dresden, Germany; * DevBoost GmbH - Berlin, Germany * - initial API and implementation ******************************************************************************/ /** * <copyright> * </copyright> * * $Id$ */ package org.oasisopen.names.tc.opendocument.xmlns.presentation; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.eclipse.emf.common.util.Enumerator; /** * <!-- begin-user-doc --> * A representation of the literals of the enumeration '<em><b>Preset Class Type</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> * @see org.oasisopen.names.tc.opendocument.xmlns.presentation.PresentationPackage#getPresetClassType() * @model extendedMetaData="name='preset-class_._type'" * @generated */ public enum PresetClassType implements Enumerator { /** * The '<em><b>Custom</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #CUSTOM_VALUE * @generated * @ordered */ CUSTOM(0, "custom", "custom"), /** * The '<em><b>Entrance</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #ENTRANCE_VALUE * @generated * @ordered */ ENTRANCE(1, "entrance", "entrance"), /** * The '<em><b>Exit</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #EXIT_VALUE * @generated * @ordered */ EXIT(2, "exit", "exit"), /** * The '<em><b>Emphasis</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #EMPHASIS_VALUE * @generated * @ordered */ EMPHASIS(3, "emphasis", "emphasis"), /** * The '<em><b>Motion Path</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #MOTION_PATH_VALUE * @generated * @ordered */ MOTION_PATH(4, "motionPath", "motion-path"), /** * The '<em><b>Ole Action</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #OLE_ACTION_VALUE * @generated * @ordered */ OLE_ACTION(5, "oleAction", "ole-action"), /** * The '<em><b>Media Call</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #MEDIA_CALL_VALUE * @generated * @ordered */ MEDIA_CALL(6, "mediaCall", "media-call"); /** * The '<em><b>Custom</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Custom</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #CUSTOM * @model name="custom" * @generated * @ordered */ public static final int CUSTOM_VALUE = 0; /** * The '<em><b>Entrance</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Entrance</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #ENTRANCE * @model name="entrance" * @generated * @ordered */ public static final int ENTRANCE_VALUE = 1; /** * The '<em><b>Exit</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Exit</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #EXIT * @model name="exit" * @generated * @ordered */ public static final int EXIT_VALUE = 2; /** * The '<em><b>Emphasis</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Emphasis</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #EMPHASIS * @model name="emphasis" * @generated * @ordered */ public static final int EMPHASIS_VALUE = 3; /** * The '<em><b>Motion Path</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Motion Path</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #MOTION_PATH * @model name="motionPath" literal="motion-path" * @generated * @ordered */ public static final int MOTION_PATH_VALUE = 4; /** * The '<em><b>Ole Action</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Ole Action</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #OLE_ACTION * @model name="oleAction" literal="ole-action" * @generated * @ordered */ public static final int OLE_ACTION_VALUE = 5; /** * The '<em><b>Media Call</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Media Call</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #MEDIA_CALL * @model name="mediaCall" literal="media-call" * @generated * @ordered */ public static final int MEDIA_CALL_VALUE = 6; /** * An array of all the '<em><b>Preset Class Type</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static final PresetClassType[] VALUES_ARRAY = new PresetClassType[] { CUSTOM, ENTRANCE, EXIT, EMPHASIS, MOTION_PATH, OLE_ACTION, MEDIA_CALL, }; /** * A public read-only list of all the '<em><b>Preset Class Type</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final List<PresetClassType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the '<em><b>Preset Class Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static PresetClassType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { PresetClassType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the '<em><b>Preset Class Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static PresetClassType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { PresetClassType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the '<em><b>Preset Class Type</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static PresetClassType get(int value) { switch (value) { case CUSTOM_VALUE: return CUSTOM; case ENTRANCE_VALUE: return ENTRANCE; case EXIT_VALUE: return EXIT; case EMPHASIS_VALUE: return EMPHASIS; case MOTION_PATH_VALUE: return MOTION_PATH; case OLE_ACTION_VALUE: return OLE_ACTION; case MEDIA_CALL_VALUE: return MEDIA_CALL; } return null; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private final int value; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private final String name; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private final String literal; /** * Only this class can construct instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private PresetClassType(int value, String name, String literal) { this.value = value; this.name = name; this.literal = literal; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public int getValue() { return value; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getName() { return name; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getLiteral() { return literal; } /** * Returns the literal value of the enumerator, which is its string representation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { return literal; } } //PresetClassType