/*- * ============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.gwt.siriusportal.model; 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 'Gui Table Column Type', * and utility methods for working with them. * * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableColumnType() * @model * @generated */ public enum GuiTableColumnType implements Enumerator { /** * The 'STRING' literal object. * * * @see #STRING_VALUE * @generated * @ordered */ STRING(0, "STRING", "STRING"), /** * The 'DOUBLE' literal object. * * * @see #DOUBLE_VALUE * @generated * @ordered */ DOUBLE(0, "DOUBLE", "DOUBLE"), /** * The 'DATE' literal object. * * * @see #DATE_VALUE * @generated * @ordered */ DATE(0, "DATE", "DATE"), /** * The 'REF LIST' literal object. * * * @see #REF_LIST_VALUE * @generated * @ordered */ REF_LIST(0, "REF_LIST", "REF_LIST"); /** * The 'STRING' literal value. * *

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

* * @see #STRING * @model * @generated * @ordered */ public static final int STRING_VALUE = 0; /** * The 'DOUBLE' literal value. * *

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

* * @see #DOUBLE * @model * @generated * @ordered */ public static final int DOUBLE_VALUE = 0; /** * The 'DATE' literal value. * *

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

* * @see #DATE * @model * @generated * @ordered */ public static final int DATE_VALUE = 0; /** * The 'REF LIST' literal value. * *

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

* * @see #REF_LIST * @model * @generated * @ordered */ public static final int REF_LIST_VALUE = 0; /** * An array of all the 'Gui Table Column Type' enumerators. * * * @generated */ private static final GuiTableColumnType[] VALUES_ARRAY = new GuiTableColumnType[] { STRING, DOUBLE, DATE, REF_LIST, }; /** * A public read-only list of all the 'Gui Table Column Type' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Gui Table Column Type' literal with the specified literal value. * * * @generated */ public static GuiTableColumnType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { GuiTableColumnType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Gui Table Column Type' literal with the specified name. * * * @generated */ public static GuiTableColumnType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { GuiTableColumnType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Gui Table Column Type' literal with the specified integer value. * * * @generated */ public static GuiTableColumnType get(int value) { switch (value) { case STRING_VALUE: return STRING; } 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 GuiTableColumnType(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; } } //GuiTableColumnType