/*- * ============LICENSE_START========================================== * OPENECOMP - DCAE * =================================================================== * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. * =================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END============================================ */ /** */ package org.openecomp.ncomp.openstack.location; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.eclipse.emf.common.util.Enumerator; /** * * A representation of the literals of the enumeration 'Open Stack Version', * and utility methods for working with them. * * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackVersion() * @model * @generated */ public enum OpenStackVersion implements Enumerator { /** * The 'Folsom' literal object. * * * @see #FOLSOM_VALUE * @generated * @ordered */ FOLSOM(0, "Folsom", "Folsom"), /** * The 'Grizzly' literal object. * * * @see #GRIZZLY_VALUE * @generated * @ordered */ GRIZZLY(0, "Grizzly", "Grizzly"), /** * The 'Havana' literal object. * * * @see #HAVANA_VALUE * @generated * @ordered */ HAVANA(0, "Havana", "Havana"), /** * The 'Icehouse' literal object. * * * @see #ICEHOUSE_VALUE * @generated * @ordered */ ICEHOUSE(0, "Icehouse", "Icehouse"), /** * The 'Juno' literal object. * * * @see #JUNO_VALUE * @generated * @ordered */ JUNO(0, "Juno", "Juno"), /** * The 'Kilo' literal object. * * * @see #KILO_VALUE * @generated * @ordered */ KILO(0, "Kilo", "Kilo"), /** * The 'Liberty' literal object. * * * @see #LIBERTY_VALUE * @generated * @ordered */ LIBERTY(0, "Liberty", "Liberty"), /** * The 'Mitaka' literal object. * * * @see #MITAKA_VALUE * @generated * @ordered */ MITAKA(0, "Mitaka", "Mitaka"); /** * The 'Folsom' literal value. * *

* If the meaning of 'Folsom' literal object isn't clear, * there really should be more of a description here... *

* * @see #FOLSOM * @model name="Folsom" * @generated * @ordered */ public static final int FOLSOM_VALUE = 0; /** * The 'Grizzly' literal value. * *

* If the meaning of 'Grizzly' literal object isn't clear, * there really should be more of a description here... *

* * @see #GRIZZLY * @model name="Grizzly" * @generated * @ordered */ public static final int GRIZZLY_VALUE = 0; /** * The 'Havana' literal value. * *

* If the meaning of 'Havana' literal object isn't clear, * there really should be more of a description here... *

* * @see #HAVANA * @model name="Havana" * @generated * @ordered */ public static final int HAVANA_VALUE = 0; /** * The 'Icehouse' literal value. * *

* If the meaning of 'Icehouse' literal object isn't clear, * there really should be more of a description here... *

* * @see #ICEHOUSE * @model name="Icehouse" * @generated * @ordered */ public static final int ICEHOUSE_VALUE = 0; /** * The 'Juno' literal value. * *

* If the meaning of 'Juno' literal object isn't clear, * there really should be more of a description here... *

* * @see #JUNO * @model name="Juno" * @generated * @ordered */ public static final int JUNO_VALUE = 0; /** * The 'Kilo' literal value. * *

* If the meaning of 'Kilo' literal object isn't clear, * there really should be more of a description here... *

* * @see #KILO * @model name="Kilo" * @generated * @ordered */ public static final int KILO_VALUE = 0; /** * The 'Liberty' literal value. * *

* If the meaning of 'Liberty' literal object isn't clear, * there really should be more of a description here... *

* * @see #LIBERTY * @model name="Liberty" * @generated * @ordered */ public static final int LIBERTY_VALUE = 0; /** * The 'Mitaka' literal value. * *

* If the meaning of 'Mitaka' literal object isn't clear, * there really should be more of a description here... *

* * @see #MITAKA * @model name="Mitaka" * @generated * @ordered */ public static final int MITAKA_VALUE = 0; /** * An array of all the 'Open Stack Version' enumerators. * * * @generated */ private static final OpenStackVersion[] VALUES_ARRAY = new OpenStackVersion[] { FOLSOM, GRIZZLY, HAVANA, ICEHOUSE, JUNO, KILO, LIBERTY, MITAKA, }; /** * A public read-only list of all the 'Open Stack Version' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Open Stack Version' literal with the specified literal value. * * * @generated */ public static OpenStackVersion get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { OpenStackVersion result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Open Stack Version' literal with the specified name. * * * @generated */ public static OpenStackVersion getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { OpenStackVersion result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Open Stack Version' literal with the specified integer value. * * * @generated */ public static OpenStackVersion get(int value) { switch (value) { case FOLSOM_VALUE: return FOLSOM; } return null; } /** * * * @generated */ private final int value; /** * * * @generated */ private final String name; /** * * * @generated */ private final String literal; /** * Only this class can construct instances. * * * @generated */ private OpenStackVersion(int value, String name, String literal) { this.value = value; this.name = name; this.literal = literal; } /** * * * @generated */ public int getValue() { return value; } /** * * * @generated */ public String getName() { return name; } /** * * * @generated */ public String getLiteral() { return literal; } /** * Returns the literal value of the enumerator, which is its string representation. * * * @generated */ @Override public String toString() { return literal; } } //OpenStackVersion