/******************************************************************************* * 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.text; 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>Presentation Effects</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> * @see org.oasisopen.names.tc.opendocument.xmlns.text.TextPackage#getPresentationEffects() * @model extendedMetaData="name='presentationEffects'" * @generated */ public enum PresentationEffects implements Enumerator { /** * The '<em><b>None</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #NONE_VALUE * @generated * @ordered */ NONE(0, "none", "none"), /** * The '<em><b>Fade</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #FADE_VALUE * @generated * @ordered */ FADE(1, "fade", "fade"), /** * The '<em><b>Move</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #MOVE_VALUE * @generated * @ordered */ MOVE(2, "move", "move"), /** * The '<em><b>Stripes</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #STRIPES_VALUE * @generated * @ordered */ STRIPES(3, "stripes", "stripes"), /** * The '<em><b>Open</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #OPEN_VALUE * @generated * @ordered */ OPEN(4, "open", "open"), /** * The '<em><b>Close</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #CLOSE_VALUE * @generated * @ordered */ CLOSE(5, "close", "close"), /** * The '<em><b>Dissolve</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #DISSOLVE_VALUE * @generated * @ordered */ DISSOLVE(6, "dissolve", "dissolve"), /** * The '<em><b>Wavyline</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #WAVYLINE_VALUE * @generated * @ordered */ WAVYLINE(7, "wavyline", "wavyline"), /** * The '<em><b>Random</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #RANDOM_VALUE * @generated * @ordered */ RANDOM(8, "random", "random"), /** * The '<em><b>Lines</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #LINES_VALUE * @generated * @ordered */ LINES(9, "lines", "lines"), /** * The '<em><b>Laser</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #LASER_VALUE * @generated * @ordered */ LASER(10, "laser", "laser"), /** * The '<em><b>Appear</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #APPEAR_VALUE * @generated * @ordered */ APPEAR(11, "appear", "appear"), /** * The '<em><b>Hide</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #HIDE_VALUE * @generated * @ordered */ HIDE(12, "hide", "hide"), /** * The '<em><b>Move Short</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #MOVE_SHORT_VALUE * @generated * @ordered */ MOVE_SHORT(13, "moveShort", "move-short"), /** * The '<em><b>Checkerboard</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #CHECKERBOARD_VALUE * @generated * @ordered */ CHECKERBOARD(14, "checkerboard", "checkerboard"), /** * The '<em><b>Rotate</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #ROTATE_VALUE * @generated * @ordered */ ROTATE(15, "rotate", "rotate"), /** * The '<em><b>Stretch</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #STRETCH_VALUE * @generated * @ordered */ STRETCH(16, "stretch", "stretch"); /** * The '<em><b>None</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>None</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #NONE * @model name="none" * @generated * @ordered */ public static final int NONE_VALUE = 0; /** * The '<em><b>Fade</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Fade</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #FADE * @model name="fade" * @generated * @ordered */ public static final int FADE_VALUE = 1; /** * The '<em><b>Move</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Move</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #MOVE * @model name="move" * @generated * @ordered */ public static final int MOVE_VALUE = 2; /** * The '<em><b>Stripes</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Stripes</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #STRIPES * @model name="stripes" * @generated * @ordered */ public static final int STRIPES_VALUE = 3; /** * The '<em><b>Open</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Open</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #OPEN * @model name="open" * @generated * @ordered */ public static final int OPEN_VALUE = 4; /** * The '<em><b>Close</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Close</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #CLOSE * @model name="close" * @generated * @ordered */ public static final int CLOSE_VALUE = 5; /** * The '<em><b>Dissolve</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Dissolve</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #DISSOLVE * @model name="dissolve" * @generated * @ordered */ public static final int DISSOLVE_VALUE = 6; /** * The '<em><b>Wavyline</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Wavyline</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #WAVYLINE * @model name="wavyline" * @generated * @ordered */ public static final int WAVYLINE_VALUE = 7; /** * The '<em><b>Random</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Random</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #RANDOM * @model name="random" * @generated * @ordered */ public static final int RANDOM_VALUE = 8; /** * The '<em><b>Lines</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Lines</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #LINES * @model name="lines" * @generated * @ordered */ public static final int LINES_VALUE = 9; /** * The '<em><b>Laser</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Laser</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #LASER * @model name="laser" * @generated * @ordered */ public static final int LASER_VALUE = 10; /** * The '<em><b>Appear</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Appear</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #APPEAR * @model name="appear" * @generated * @ordered */ public static final int APPEAR_VALUE = 11; /** * The '<em><b>Hide</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Hide</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #HIDE * @model name="hide" * @generated * @ordered */ public static final int HIDE_VALUE = 12; /** * The '<em><b>Move Short</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Move Short</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #MOVE_SHORT * @model name="moveShort" literal="move-short" * @generated * @ordered */ public static final int MOVE_SHORT_VALUE = 13; /** * The '<em><b>Checkerboard</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Checkerboard</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #CHECKERBOARD * @model name="checkerboard" * @generated * @ordered */ public static final int CHECKERBOARD_VALUE = 14; /** * The '<em><b>Rotate</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Rotate</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #ROTATE * @model name="rotate" * @generated * @ordered */ public static final int ROTATE_VALUE = 15; /** * The '<em><b>Stretch</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Stretch</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #STRETCH * @model name="stretch" * @generated * @ordered */ public static final int STRETCH_VALUE = 16; /** * An array of all the '<em><b>Presentation Effects</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static final PresentationEffects[] VALUES_ARRAY = new PresentationEffects[] { NONE, FADE, MOVE, STRIPES, OPEN, CLOSE, DISSOLVE, WAVYLINE, RANDOM, LINES, LASER, APPEAR, HIDE, MOVE_SHORT, CHECKERBOARD, ROTATE, STRETCH, }; /** * A public read-only list of all the '<em><b>Presentation Effects</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final List<PresentationEffects> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the '<em><b>Presentation Effects</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static PresentationEffects get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { PresentationEffects result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the '<em><b>Presentation Effects</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static PresentationEffects getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { PresentationEffects result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the '<em><b>Presentation Effects</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static PresentationEffects get(int value) { switch (value) { case NONE_VALUE: return NONE; case FADE_VALUE: return FADE; case MOVE_VALUE: return MOVE; case STRIPES_VALUE: return STRIPES; case OPEN_VALUE: return OPEN; case CLOSE_VALUE: return CLOSE; case DISSOLVE_VALUE: return DISSOLVE; case WAVYLINE_VALUE: return WAVYLINE; case RANDOM_VALUE: return RANDOM; case LINES_VALUE: return LINES; case LASER_VALUE: return LASER; case APPEAR_VALUE: return APPEAR; case HIDE_VALUE: return HIDE; case MOVE_SHORT_VALUE: return MOVE_SHORT; case CHECKERBOARD_VALUE: return CHECKERBOARD; case ROTATE_VALUE: return ROTATE; case STRETCH_VALUE: return STRETCH; } 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 PresentationEffects(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; } } //PresentationEffects