/** */ package org.xtext.nv.dsl.mMDSL; 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>Font</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> * @see org.xtext.nv.dsl.mMDSL.MMDSLPackage#getFont() * @model * @generated */ public enum Font implements Enumerator { /** * The '<em><b>Arial</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #ARIAL_VALUE * @generated * @ordered */ ARIAL(0, "arial", "Arial"), /** * The '<em><b>Arialblack</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #ARIALBLACK_VALUE * @generated * @ordered */ ARIALBLACK(1, "arialblack", "Arial_Black"), /** * The '<em><b>Comicsansms</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #COMICSANSMS_VALUE * @generated * @ordered */ COMICSANSMS(2, "comicsansms", "Comic_Sans_MS"), /** * The '<em><b>Couriernew</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #COURIERNEW_VALUE * @generated * @ordered */ COURIERNEW(3, "couriernew", "Courier_New"), /** * The '<em><b>Georgia</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #GEORGIA_VALUE * @generated * @ordered */ GEORGIA(4, "georgia", "Georgia"), /** * The '<em><b>Impact</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #IMPACT_VALUE * @generated * @ordered */ IMPACT(5, "impact", "Impact"), /** * The '<em><b>Lucidaconsole</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #LUCIDACONSOLE_VALUE * @generated * @ordered */ LUCIDACONSOLE(6, "lucidaconsole", "Lucida_Console"), /** * The '<em><b>Lucidasansunicode</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #LUCIDASANSUNICODE_VALUE * @generated * @ordered */ LUCIDASANSUNICODE(7, "lucidasansunicode", "Lucida_Sans_Unicode"), /** * The '<em><b>Palatinolinotype</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #PALATINOLINOTYPE_VALUE * @generated * @ordered */ PALATINOLINOTYPE(8, "palatinolinotype", "Palatino_Linotype"), /** * The '<em><b>Tahoma</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #TAHOMA_VALUE * @generated * @ordered */ TAHOMA(9, "tahoma", "Tahoma"), /** * The '<em><b>Timesnewroman</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #TIMESNEWROMAN_VALUE * @generated * @ordered */ TIMESNEWROMAN(10, "timesnewroman", "Times_New_Roman"), /** * The '<em><b>Trebuchetms</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #TREBUCHETMS_VALUE * @generated * @ordered */ TREBUCHETMS(11, "trebuchetms", "Trebuchet_MS"), /** * The '<em><b>Verdana</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #VERDANA_VALUE * @generated * @ordered */ VERDANA(12, "verdana", "Verdana"), /** * The '<em><b>Symbol</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #SYMBOL_VALUE * @generated * @ordered */ SYMBOL(13, "symbol", "Symbol"), /** * The '<em><b>Webdings</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #WEBDINGS_VALUE * @generated * @ordered */ WEBDINGS(14, "webdings", "Webdings"), /** * The '<em><b>Windings</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #WINDINGS_VALUE * @generated * @ordered */ WINDINGS(15, "windings", "Wingdings"), /** * The '<em><b>Mssansserif</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #MSSANSSERIF_VALUE * @generated * @ordered */ MSSANSSERIF(16, "mssansserif", "MS_Sans_Serif"), /** * The '<em><b>Msserif</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #MSSERIF_VALUE * @generated * @ordered */ MSSERIF(17, "msserif", "MS_Serif"); /** * The '<em><b>Arial</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Arial</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #ARIAL * @model name="arial" literal="Arial" * @generated * @ordered */ public static final int ARIAL_VALUE = 0; /** * The '<em><b>Arialblack</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Arialblack</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #ARIALBLACK * @model name="arialblack" literal="Arial_Black" * @generated * @ordered */ public static final int ARIALBLACK_VALUE = 1; /** * The '<em><b>Comicsansms</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Comicsansms</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #COMICSANSMS * @model name="comicsansms" literal="Comic_Sans_MS" * @generated * @ordered */ public static final int COMICSANSMS_VALUE = 2; /** * The '<em><b>Couriernew</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Couriernew</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #COURIERNEW * @model name="couriernew" literal="Courier_New" * @generated * @ordered */ public static final int COURIERNEW_VALUE = 3; /** * The '<em><b>Georgia</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Georgia</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #GEORGIA * @model name="georgia" literal="Georgia" * @generated * @ordered */ public static final int GEORGIA_VALUE = 4; /** * The '<em><b>Impact</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Impact</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #IMPACT * @model name="impact" literal="Impact" * @generated * @ordered */ public static final int IMPACT_VALUE = 5; /** * The '<em><b>Lucidaconsole</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Lucidaconsole</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #LUCIDACONSOLE * @model name="lucidaconsole" literal="Lucida_Console" * @generated * @ordered */ public static final int LUCIDACONSOLE_VALUE = 6; /** * The '<em><b>Lucidasansunicode</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Lucidasansunicode</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #LUCIDASANSUNICODE * @model name="lucidasansunicode" literal="Lucida_Sans_Unicode" * @generated * @ordered */ public static final int LUCIDASANSUNICODE_VALUE = 7; /** * The '<em><b>Palatinolinotype</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Palatinolinotype</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #PALATINOLINOTYPE * @model name="palatinolinotype" literal="Palatino_Linotype" * @generated * @ordered */ public static final int PALATINOLINOTYPE_VALUE = 8; /** * The '<em><b>Tahoma</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Tahoma</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #TAHOMA * @model name="tahoma" literal="Tahoma" * @generated * @ordered */ public static final int TAHOMA_VALUE = 9; /** * The '<em><b>Timesnewroman</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Timesnewroman</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #TIMESNEWROMAN * @model name="timesnewroman" literal="Times_New_Roman" * @generated * @ordered */ public static final int TIMESNEWROMAN_VALUE = 10; /** * The '<em><b>Trebuchetms</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Trebuchetms</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #TREBUCHETMS * @model name="trebuchetms" literal="Trebuchet_MS" * @generated * @ordered */ public static final int TREBUCHETMS_VALUE = 11; /** * The '<em><b>Verdana</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Verdana</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #VERDANA * @model name="verdana" literal="Verdana" * @generated * @ordered */ public static final int VERDANA_VALUE = 12; /** * The '<em><b>Symbol</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Symbol</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #SYMBOL * @model name="symbol" literal="Symbol" * @generated * @ordered */ public static final int SYMBOL_VALUE = 13; /** * The '<em><b>Webdings</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Webdings</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #WEBDINGS * @model name="webdings" literal="Webdings" * @generated * @ordered */ public static final int WEBDINGS_VALUE = 14; /** * The '<em><b>Windings</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Windings</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #WINDINGS * @model name="windings" literal="Wingdings" * @generated * @ordered */ public static final int WINDINGS_VALUE = 15; /** * The '<em><b>Mssansserif</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Mssansserif</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #MSSANSSERIF * @model name="mssansserif" literal="MS_Sans_Serif" * @generated * @ordered */ public static final int MSSANSSERIF_VALUE = 16; /** * The '<em><b>Msserif</b></em>' literal value. * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>Msserif</b></em>' literal object isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @see #MSSERIF * @model name="msserif" literal="MS_Serif" * @generated * @ordered */ public static final int MSSERIF_VALUE = 17; /** * An array of all the '<em><b>Font</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static final Font[] VALUES_ARRAY = new Font[] { ARIAL, ARIALBLACK, COMICSANSMS, COURIERNEW, GEORGIA, IMPACT, LUCIDACONSOLE, LUCIDASANSUNICODE, PALATINOLINOTYPE, TAHOMA, TIMESNEWROMAN, TREBUCHETMS, VERDANA, SYMBOL, WEBDINGS, WINDINGS, MSSANSSERIF, MSSERIF, }; /** * A public read-only list of all the '<em><b>Font</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final List<Font> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the '<em><b>Font</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static Font get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { Font result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the '<em><b>Font</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static Font getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { Font result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the '<em><b>Font</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static Font get(int value) { switch (value) { case ARIAL_VALUE: return ARIAL; case ARIALBLACK_VALUE: return ARIALBLACK; case COMICSANSMS_VALUE: return COMICSANSMS; case COURIERNEW_VALUE: return COURIERNEW; case GEORGIA_VALUE: return GEORGIA; case IMPACT_VALUE: return IMPACT; case LUCIDACONSOLE_VALUE: return LUCIDACONSOLE; case LUCIDASANSUNICODE_VALUE: return LUCIDASANSUNICODE; case PALATINOLINOTYPE_VALUE: return PALATINOLINOTYPE; case TAHOMA_VALUE: return TAHOMA; case TIMESNEWROMAN_VALUE: return TIMESNEWROMAN; case TREBUCHETMS_VALUE: return TREBUCHETMS; case VERDANA_VALUE: return VERDANA; case SYMBOL_VALUE: return SYMBOL; case WEBDINGS_VALUE: return WEBDINGS; case WINDINGS_VALUE: return WINDINGS; case MSSANSSERIF_VALUE: return MSSANSSERIF; case MSSERIF_VALUE: return MSSERIF; } 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 Font(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; } } //Font