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

org.openxma.dsl.dom.model.CollectionType Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
/**
 * 
 * 
 *
 * $Id$
 */
package org.openxma.dsl.dom.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 'Collection Type',
 * and utility methods for working with them.
 * 
 * @see org.openxma.dsl.dom.DomPackage#getCollectionType()
 * @model
 * @generated
 */
public enum CollectionType implements Enumerator {
	/**
	 * The 'NULL' literal object.
	 * 
	 * 
	 * @see #NULL_VALUE
	 * @generated
	 * @ordered
	 */
	NULL(0, "NULL", "NULL"), /**
	 * The 'COLLECTION' literal object.
	 * 
	 * 
	 * @see #COLLECTION_VALUE
	 * @generated
	 * @ordered
	 */
	COLLECTION(1, "COLLECTION", "Collection"),

	/**
	 * The 'SET' literal object.
	 * 
	 * 
	 * @see #SET_VALUE
	 * @generated
	 * @ordered
	 */
	SET(2, "SET", "Set"),

	/**
	 * The 'LIST' literal object.
	 * 
	 * 
	 * @see #LIST_VALUE
	 * @generated
	 * @ordered
	 */
	LIST(3, "LIST", "List"),

	/**
	 * The 'MAP' literal object.
	 * 
	 * 
	 * @see #MAP_VALUE
	 * @generated
	 * @ordered
	 */
	MAP(4, "MAP", "Map");

	/**
	 * The 'NULL' literal value.
	 * 
	 * 

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

* * @see #NULL * @model * @generated * @ordered */ public static final int NULL_VALUE = 0; /** * The 'COLLECTION' literal value. * *

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

* * @see #COLLECTION * @model literal="Collection" * @generated * @ordered */ public static final int COLLECTION_VALUE = 1; /** * The 'SET' literal value. * *

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

* * @see #SET * @model literal="Set" * @generated * @ordered */ public static final int SET_VALUE = 2; /** * The 'LIST' literal value. * *

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

* * @see #LIST * @model literal="List" * @generated * @ordered */ public static final int LIST_VALUE = 3; /** * The 'MAP' literal value. * *

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

* * @see #MAP * @model literal="Map" * @generated * @ordered */ public static final int MAP_VALUE = 4; /** * An array of all the 'Collection Type' enumerators. * * * @generated */ private static final CollectionType[] VALUES_ARRAY = new CollectionType[] { NULL, COLLECTION, SET, LIST, MAP, }; /** * A public read-only list of all the 'Collection Type' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Collection Type' literal with the specified literal value. * * * @generated */ public static CollectionType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { CollectionType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Collection Type' literal with the specified name. * * * @generated */ public static CollectionType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { CollectionType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Collection Type' literal with the specified integer value. * * * @generated */ public static CollectionType get(int value) { switch (value) { case NULL_VALUE: return NULL; case COLLECTION_VALUE: return COLLECTION; case SET_VALUE: return SET; case LIST_VALUE: return LIST; case MAP_VALUE: return MAP; } 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 CollectionType(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; } } //CollectionType




© 2015 - 2024 Weber Informatics LLC | Privacy Policy