All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nasdanika.html.model.app.SectionStyle Maven / Gradle / Ivy

There is a newer version: 2024.10.0
Show newest version
/**
 */
package org.nasdanika.html.model.app;

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 'Section Style',
 * and utility methods for working with them.
 * 
 * @see org.nasdanika.html.model.app.AppPackage#getSectionStyle()
 * @model
 * @generated
 */
public enum SectionStyle implements Enumerator {
	/**
	 * The 'Auto' literal object.
	 * 
	 * 
	 * @see #AUTO_VALUE
	 * @generated
	 * @ordered
	 */
	AUTO(0, "Auto", "Auto"),

	/**
	 * The 'Action Group' literal object.
	 * 
	 * 
	 * @see #ACTION_GROUP_VALUE
	 * @generated
	 * @ordered
	 */
	ACTION_GROUP(1, "ActionGroup", "ActionGroup"),

	/**
	 * The 'Card' literal object.
	 * 
	 * 
	 * @see #CARD_VALUE
	 * @generated
	 * @ordered
	 */
	CARD(2, "Card", "Card"),

	/**
	 * The 'Card Pill' literal object.
	 * 
	 * 
	 * @see #CARD_PILL_VALUE
	 * @generated
	 * @ordered
	 */
	CARD_PILL(3, "CardPill", "CardPill"),

	/**
	 * The 'Card Tab' literal object.
	 * 
	 * 
	 * @see #CARD_TAB_VALUE
	 * @generated
	 * @ordered
	 */
	CARD_TAB(4, "CardTab", "CardTab"),

	/**
	 * The 'Header' literal object.
	 * 
	 * 
	 * @see #HEADER_VALUE
	 * @generated
	 * @ordered
	 */
	HEADER(5, "Header", "Header"),

	/**
	 * The 'Pill' literal object.
	 * 
	 * 
	 * @see #PILL_VALUE
	 * @generated
	 * @ordered
	 */
	PILL(6, "Pill", "Pill"),

	/**
	 * The 'Tab' literal object.
	 * 
	 * 
	 * @see #TAB_VALUE
	 * @generated
	 * @ordered
	 */
	TAB(7, "Tab", "Tab"),

	/**
	 * The 'Table' literal object.
	 * 
	 * 
	 * @see #TABLE_VALUE
	 * @generated
	 * @ordered
	 */
	TABLE(8, "Table", "Table");

	/**
	 * The 'Auto' literal value.
	 * 
	 * 
	 * @see #AUTO
	 * @model name="Auto"
	 * @generated
	 * @ordered
	 */
	public static final int AUTO_VALUE = 0;

	/**
	 * The 'Action Group' literal value.
	 * 
	 * 
	 * @see #ACTION_GROUP
	 * @model name="ActionGroup"
	 * @generated
	 * @ordered
	 */
	public static final int ACTION_GROUP_VALUE = 1;

	/**
	 * The 'Card' literal value.
	 * 
	 * 
	 * @see #CARD
	 * @model name="Card"
	 * @generated
	 * @ordered
	 */
	public static final int CARD_VALUE = 2;

	/**
	 * The 'Card Pill' literal value.
	 * 
	 * 
	 * @see #CARD_PILL
	 * @model name="CardPill"
	 * @generated
	 * @ordered
	 */
	public static final int CARD_PILL_VALUE = 3;

	/**
	 * The 'Card Tab' literal value.
	 * 
	 * 
	 * @see #CARD_TAB
	 * @model name="CardTab"
	 * @generated
	 * @ordered
	 */
	public static final int CARD_TAB_VALUE = 4;

	/**
	 * The 'Header' literal value.
	 * 
	 * 
	 * @see #HEADER
	 * @model name="Header"
	 * @generated
	 * @ordered
	 */
	public static final int HEADER_VALUE = 5;

	/**
	 * The 'Pill' literal value.
	 * 
	 * 
	 * @see #PILL
	 * @model name="Pill"
	 * @generated
	 * @ordered
	 */
	public static final int PILL_VALUE = 6;

	/**
	 * The 'Tab' literal value.
	 * 
	 * 
	 * @see #TAB
	 * @model name="Tab"
	 * @generated
	 * @ordered
	 */
	public static final int TAB_VALUE = 7;

	/**
	 * The 'Table' literal value.
	 * 
	 * 
	 * @see #TABLE
	 * @model name="Table"
	 * @generated
	 * @ordered
	 */
	public static final int TABLE_VALUE = 8;

	/**
	 * An array of all the 'Section Style' enumerators.
	 * 
	 * 
	 * @generated
	 */
	private static final SectionStyle[] VALUES_ARRAY =
		new SectionStyle[] {
			AUTO,
			ACTION_GROUP,
			CARD,
			CARD_PILL,
			CARD_TAB,
			HEADER,
			PILL,
			TAB,
			TABLE,
		};

	/**
	 * A public read-only list of all the 'Section Style' enumerators.
	 * 
	 * 
	 * @generated
	 */
	public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the 'Section Style' literal with the specified literal value.
	 * 
	 * 
	 * @param literal the literal.
	 * @return the matching enumerator or null.
	 * @generated
	 */
	public static SectionStyle get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			SectionStyle result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the 'Section Style' literal with the specified name.
	 * 
	 * 
	 * @param name the name.
	 * @return the matching enumerator or null.
	 * @generated
	 */
	public static SectionStyle getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			SectionStyle result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the 'Section Style' literal with the specified integer value.
	 * 
	 * 
	 * @param value the integer value.
	 * @return the matching enumerator or null.
	 * @generated
	 */
	public static SectionStyle get(int value) {
		switch (value) {
			case AUTO_VALUE: return AUTO;
			case ACTION_GROUP_VALUE: return ACTION_GROUP;
			case CARD_VALUE: return CARD;
			case CARD_PILL_VALUE: return CARD_PILL;
			case CARD_TAB_VALUE: return CARD_TAB;
			case HEADER_VALUE: return HEADER;
			case PILL_VALUE: return PILL;
			case TAB_VALUE: return TAB;
			case TABLE_VALUE: return TABLE;
		}
		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 SectionStyle(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * 
	 * 
	 * @generated
	 */
	@Override
	public int getValue() {
	  return value;
	}

	/**
	 * 
	 * 
	 * @generated
	 */
	@Override
	public String getName() {
	  return name;
	}

	/**
	 * 
	 * 
	 * @generated
	 */
	@Override
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * 
	 * 
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //SectionStyle




© 2015 - 2024 Weber Informatics LLC | Privacy Policy