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

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

There is a newer version: 6.0.2
Show newest version
/**
 * 
 * 
 *
 * $Id: ServiceType.java 4109 2009-09-22 10:50:55Z michael_clay $
 */
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 'Service Type',
 * and utility methods for working with them.
 * 
 * @see org.openxma.dsl.dom.DomPackage#getServiceType()
 * @model
 * @generated
 */
public enum ServiceType implements Enumerator {
	/**
	 * The 'Remote' literal object.
	 * 
	 * 
	 * @see #REMOTE_VALUE
	 * @generated
	 * @ordered
	 */
	REMOTE(0, "remote", "remote"),

	/**
	 * The 'Local' literal object.
	 * 
	 * 
	 * @see #LOCAL_VALUE
	 * @generated
	 * @ordered
	 */
	LOCAL(1, "local", "local");

	/**
	 * The 'Remote' literal value.
	 * 
	 * 

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

* * @see #REMOTE * @model name="remote" * @generated * @ordered */ public static final int REMOTE_VALUE = 0; /** * The 'Local' literal value. * *

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

* * @see #LOCAL * @model name="local" * @generated * @ordered */ public static final int LOCAL_VALUE = 1; /** * An array of all the 'Service Type' enumerators. * * * @generated */ private static final ServiceType[] VALUES_ARRAY = new ServiceType[] { REMOTE, LOCAL, }; /** * A public read-only list of all the 'Service Type' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Service Type' literal with the specified literal value. * * * @generated */ public static ServiceType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ServiceType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Service Type' literal with the specified name. * * * @generated */ public static ServiceType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ServiceType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Service Type' literal with the specified integer value. * * * @generated */ public static ServiceType get(int value) { switch (value) { case REMOTE_VALUE: return REMOTE; case LOCAL_VALUE: return LOCAL; } 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 ServiceType(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; } } //ServiceType




© 2015 - 2024 Weber Informatics LLC | Privacy Policy