/******************************************************************************* * 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.style; 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>Print Type Item</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> * @see org.oasisopen.names.tc.opendocument.xmlns.style.StylePackage#getPrintTypeItem() * @model extendedMetaData="name='print_._type_._item'" * @generated */ public enum PrintTypeItem implements Enumerator { /** * The '<em><b>Headers</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #HEADERS_VALUE * @generated * @ordered */ HEADERS(0, "headers", "headers"), /** * The '<em><b>Grid</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #GRID_VALUE * @generated * @ordered */ GRID(1, "grid", "grid"), /** * The '<em><b>Annotations</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #ANNOTATIONS_VALUE * @generated * @ordered */ ANNOTATIONS(2, "annotations", "annotations"), /** * The '<em><b>Objects</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #OBJECTS_VALUE * @generated * @ordered */ OBJECTS(3, "objects", "objects"), /** * The '<em><b>Charts</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #CHARTS_VALUE * @generated * @ordered */ CHARTS(4, "charts", "charts"), /** * The '<em><b>Drawings</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #DRAWINGS_VALUE * @generated * @ordered */ DRAWINGS(5, "drawings", "drawings"), /** * The '<em><b>Formulas</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #FORMULAS_VALUE * @generated * @ordered */ FORMULAS(6, "formulas", "formulas"), /** * The '<em><b>Zero Values</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #ZERO_VALUES_VALUE * @generated * @ordered */ ZERO_VALUES(7, "zeroValues", "zero-values"); /** * The '<em><b>Headers</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Headers</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #HEADERS * @model name="headers" * @generated * @ordered */ public static final int HEADERS_VALUE = 0; /** * The '<em><b>Grid</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Grid</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #GRID * @model name="grid" * @generated * @ordered */ public static final int GRID_VALUE = 1; /** * The '<em><b>Annotations</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Annotations</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #ANNOTATIONS * @model name="annotations" * @generated * @ordered */ public static final int ANNOTATIONS_VALUE = 2; /** * The '<em><b>Objects</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Objects</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #OBJECTS * @model name="objects" * @generated * @ordered */ public static final int OBJECTS_VALUE = 3; /** * The '<em><b>Charts</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Charts</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #CHARTS * @model name="charts" * @generated * @ordered */ public static final int CHARTS_VALUE = 4; /** * The '<em><b>Drawings</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Drawings</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #DRAWINGS * @model name="drawings" * @generated * @ordered */ public static final int DRAWINGS_VALUE = 5; /** * The '<em><b>Formulas</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Formulas</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #FORMULAS * @model name="formulas" * @generated * @ordered */ public static final int FORMULAS_VALUE = 6; /** * The '<em><b>Zero Values</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Zero Values</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #ZERO_VALUES * @model name="zeroValues" literal="zero-values" * @generated * @ordered */ public static final int ZERO_VALUES_VALUE = 7; /** * An array of all the '<em><b>Print Type Item</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static final PrintTypeItem[] VALUES_ARRAY = new PrintTypeItem[] { HEADERS, GRID, ANNOTATIONS, OBJECTS, CHARTS, DRAWINGS, FORMULAS, ZERO_VALUES, }; /** * A public read-only list of all the '<em><b>Print Type Item</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final List<PrintTypeItem> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the '<em><b>Print Type Item</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static PrintTypeItem get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { PrintTypeItem result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the '<em><b>Print Type Item</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static PrintTypeItem getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { PrintTypeItem result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the '<em><b>Print Type Item</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static PrintTypeItem get(int value) { switch (value) { case HEADERS_VALUE: return HEADERS; case GRID_VALUE: return GRID; case ANNOTATIONS_VALUE: return ANNOTATIONS; case OBJECTS_VALUE: return OBJECTS; case CHARTS_VALUE: return CHARTS; case DRAWINGS_VALUE: return DRAWINGS; case FORMULAS_VALUE: return FORMULAS; case ZERO_VALUES_VALUE: return ZERO_VALUES; } 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 PrintTypeItem(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; } } //PrintTypeItem