Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 1ba924a2d291a188bf57ff3d7c8c5896088364ea (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

    












                                                                                








                                                              









                                                          









                                                       









                                                          









                                                          

                                                                                     

                                 










                                                         

                                                                                    

                                 










                                                      

                                                                                 

                                 










                                                         

                                                                                    

                                 










                                                                    

                      






                                                    




                                                                                   







                                                                                                            


                                                  
                                                                
                                                        
                                                                 









                                                                                


                                                     
                                                                
                                                        
                                                             









                                                                                         


                                             




                                                                






                                   






                                   






                                   







                                                    










                                                                


                                
                        




                                   


                                  
                       




                                   


                                     
                          





                                                                                            





                                   
         
          
/**
 */
package org.eclipse.papyrus.RobotML;

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>Shade</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.eclipse.papyrus.RobotML.RobotMLPackage#getShade()
 * @model
 * @generated
 */
public enum Shade implements Enumerator {
	/**
	 * The '<em><b>WIREFRAME</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #WIREFRAME_VALUE
	 * @generated
	 * @ordered
	 */
	WIREFRAME(0, "WIREFRAME", "WIREFRAME"),

	/**
	 * The '<em><b>BOUNDBOX</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BOUNDBOX_VALUE
	 * @generated
	 * @ordered
	 */
	BOUNDBOX(1, "BOUNDBOX", "BOUNDBOX"),

	/**
	 * The '<em><b>SOLID</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SOLID_VALUE
	 * @generated
	 * @ordered
	 */
	SOLID(2, "SOLID", "SOLID"),

	/**
	 * The '<em><b>TEXTURED</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TEXTURED_VALUE
	 * @generated
	 * @ordered
	 */
	TEXTURED(3, "TEXTURED", "TEXTURED");

	/**
	 * The '<em><b>WIREFRAME</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>WIREFRAME</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #WIREFRAME
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int WIREFRAME_VALUE = 0;

	/**
	 * The '<em><b>BOUNDBOX</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>BOUNDBOX</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BOUNDBOX
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int BOUNDBOX_VALUE = 1;

	/**
	 * The '<em><b>SOLID</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SOLID</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SOLID
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SOLID_VALUE = 2;

	/**
	 * The '<em><b>TEXTURED</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TEXTURED</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TEXTURED
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TEXTURED_VALUE = 3;

	/**
	 * An array of all the '<em><b>Shade</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final Shade[] VALUES_ARRAY =
		new Shade[] {
			WIREFRAME,
			BOUNDBOX,
			SOLID,
			TEXTURED,
		};

	/**
	 * A public read-only list of all the '<em><b>Shade</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<Shade> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Shade</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static Shade get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			Shade result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Shade</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static Shade getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			Shade result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Shade</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static Shade get(int value) {
		switch (value) {
			case WIREFRAME_VALUE: return WIREFRAME;
			case BOUNDBOX_VALUE: return BOUNDBOX;
			case SOLID_VALUE: return SOLID;
			case TEXTURED_VALUE: return TEXTURED;
		}
		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 Shade(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;
	}
	
} //Shade

Back to the top