/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/

package com.nokia.carbide.cpp.internal.codescanner.gen.Kbdata;

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>Scale Type5</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see com.nokia.carbide.cpp.internal.codescanner.gen.Kbdata.KbdataPackage#getScaleType5()
 * @model extendedMetaData="name='scale_._5_._type'"
 * @generated
 */
public enum ScaleType5 implements Enumerator {
	/**
	 * The '<em><b>50</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_50_VALUE
	 * @generated
	 * @ordered
	 */
	_50(0, "_50", "50"),

	/**
	 * The '<em><b>60</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_60_VALUE
	 * @generated
	 * @ordered
	 */
	_60(1, "_60", "60"),

	/**
	 * The '<em><b>70</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_70_VALUE
	 * @generated
	 * @ordered
	 */
	_70(2, "_70", "70"),

	/**
	 * The '<em><b>80</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_80_VALUE
	 * @generated
	 * @ordered
	 */
	_80(3, "_80", "80"),

	/**
	 * The '<em><b>90</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_90_VALUE
	 * @generated
	 * @ordered
	 */
	_90(4, "_90", "90"),

	/**
	 * The '<em><b>100</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_100_VALUE
	 * @generated
	 * @ordered
	 */
	_100(5, "_100", "100"),

	/**
	 * The '<em><b>110</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_110_VALUE
	 * @generated
	 * @ordered
	 */
	_110(6, "_110", "110"),

	/**
	 * The '<em><b>120</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_120_VALUE
	 * @generated
	 * @ordered
	 */
	_120(7, "_120", "120"),

	/**
	 * The '<em><b>140</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_140_VALUE
	 * @generated
	 * @ordered
	 */
	_140(8, "_140", "140"),

	/**
	 * The '<em><b>160</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_160_VALUE
	 * @generated
	 * @ordered
	 */
	_160(9, "_160", "160"),

	/**
	 * The '<em><b>180</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_180_VALUE
	 * @generated
	 * @ordered
	 */
	_180(10, "_180", "180"),

	/**
	 * The '<em><b>200</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_200_VALUE
	 * @generated
	 * @ordered
	 */
	_200(11, "_200", "200"),

	/**
	 * The '<em><b>Dita Use Conref Target</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DITA_USE_CONREF_TARGET_VALUE
	 * @generated
	 * @ordered
	 */
	DITA_USE_CONREF_TARGET(12, "ditaUseConrefTarget", "-dita-use-conref-target");

	/**
	 * The '<em><b>50</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>50</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_50
	 * @model literal="50"
	 * @generated
	 * @ordered
	 */
	public static final int _50_VALUE = 0;

	/**
	 * The '<em><b>60</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>60</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_60
	 * @model literal="60"
	 * @generated
	 * @ordered
	 */
	public static final int _60_VALUE = 1;

	/**
	 * The '<em><b>70</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>70</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_70
	 * @model literal="70"
	 * @generated
	 * @ordered
	 */
	public static final int _70_VALUE = 2;

	/**
	 * The '<em><b>80</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>80</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_80
	 * @model literal="80"
	 * @generated
	 * @ordered
	 */
	public static final int _80_VALUE = 3;

	/**
	 * The '<em><b>90</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>90</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_90
	 * @model literal="90"
	 * @generated
	 * @ordered
	 */
	public static final int _90_VALUE = 4;

	/**
	 * The '<em><b>100</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>100</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_100
	 * @model literal="100"
	 * @generated
	 * @ordered
	 */
	public static final int _100_VALUE = 5;

	/**
	 * The '<em><b>110</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>110</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_110
	 * @model literal="110"
	 * @generated
	 * @ordered
	 */
	public static final int _110_VALUE = 6;

	/**
	 * The '<em><b>120</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>120</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_120
	 * @model literal="120"
	 * @generated
	 * @ordered
	 */
	public static final int _120_VALUE = 7;

	/**
	 * The '<em><b>140</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>140</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_140
	 * @model literal="140"
	 * @generated
	 * @ordered
	 */
	public static final int _140_VALUE = 8;

	/**
	 * The '<em><b>160</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>160</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_160
	 * @model literal="160"
	 * @generated
	 * @ordered
	 */
	public static final int _160_VALUE = 9;

	/**
	 * The '<em><b>180</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>180</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_180
	 * @model literal="180"
	 * @generated
	 * @ordered
	 */
	public static final int _180_VALUE = 10;

	/**
	 * The '<em><b>200</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>200</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_200
	 * @model literal="200"
	 * @generated
	 * @ordered
	 */
	public static final int _200_VALUE = 11;

	/**
	 * The '<em><b>Dita Use Conref Target</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Dita Use Conref Target</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DITA_USE_CONREF_TARGET
	 * @model name="ditaUseConrefTarget" literal="-dita-use-conref-target"
	 * @generated
	 * @ordered
	 */
	public static final int DITA_USE_CONREF_TARGET_VALUE = 12;

	/**
	 * An array of all the '<em><b>Scale Type5</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ScaleType5[] VALUES_ARRAY =
		new ScaleType5[] {
			_50,
			_60,
			_70,
			_80,
			_90,
			_100,
			_110,
			_120,
			_140,
			_160,
			_180,
			_200,
			DITA_USE_CONREF_TARGET,
		};

	/**
	 * A public read-only list of all the '<em><b>Scale Type5</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ScaleType5> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Scale Type5</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ScaleType5 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ScaleType5 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Scale Type5</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ScaleType5 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ScaleType5 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Scale Type5</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ScaleType5 get(int value) {
		switch (value) {
			case _50_VALUE: return _50;
			case _60_VALUE: return _60;
			case _70_VALUE: return _70;
			case _80_VALUE: return _80;
			case _90_VALUE: return _90;
			case _100_VALUE: return _100;
			case _110_VALUE: return _110;
			case _120_VALUE: return _120;
			case _140_VALUE: return _140;
			case _160_VALUE: return _160;
			case _180_VALUE: return _180;
			case _200_VALUE: return _200;
			case DITA_USE_CONREF_TARGET_VALUE: return DITA_USE_CONREF_TARGET;
		}
		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 ScaleType5(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;
	}
	
} //ScaleType5
