blob: acf4e61f3ecbfbb05d73a9946b192d272db46b9a [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http{//www.eclipse.org/legal/epl-v10.html
*
* Based on ideas from Xtext, Xtend, Xcore
*
* Contributors{
* Christophe Loetz (Loetz GmbH&Co.KG) - Initial implementation
*
*/
package org.eclipse.osbp.xtext.strategy;
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>Layouting Enum</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.osbp.xtext.strategy.StrategyDSLPackage#getLayoutingEnum()
* @model
* @generated
*/
public enum LayoutingEnum implements Enumerator {
/**
* The '<em><b>HORIZONTAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #HORIZONTAL_VALUE
* @generated
* @ordered
*/
HORIZONTAL(0, "HORIZONTAL", "Horizontal"),
/**
* The '<em><b>VERTICAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #VERTICAL_VALUE
* @generated
* @ordered
*/
VERTICAL(0, "VERTICAL", "Vertical"),
/**
* The '<em><b>GRID</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GRID_VALUE
* @generated
* @ordered
*/
GRID(0, "GRID", "Grid"),
/**
* The '<em><b>FORM2</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #FORM2_VALUE
* @generated
* @ordered
*/
FORM2(0, "FORM2", "Form2"),
/**
* The '<em><b>FORM3</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #FORM3_VALUE
* @generated
* @ordered
*/
FORM3(0, "FORM3", "Form3"),
/**
* The '<em><b>CSS</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #CSS_VALUE
* @generated
* @ordered
*/
CSS(0, "CSS", "Css");
/**
* The '<em><b>HORIZONTAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>HORIZONTAL</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #HORIZONTAL
* @model literal="Horizontal"
* @generated
* @ordered
*/
public static final int HORIZONTAL_VALUE = 0;
/**
* The '<em><b>VERTICAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>VERTICAL</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #VERTICAL
* @model literal="Vertical"
* @generated
* @ordered
*/
public static final int VERTICAL_VALUE = 0;
/**
* The '<em><b>GRID</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>GRID</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #GRID
* @model literal="Grid"
* @generated
* @ordered
*/
public static final int GRID_VALUE = 0;
/**
* The '<em><b>FORM2</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>FORM2</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #FORM2
* @model literal="Form2"
* @generated
* @ordered
*/
public static final int FORM2_VALUE = 0;
/**
* The '<em><b>FORM3</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>FORM3</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #FORM3
* @model literal="Form3"
* @generated
* @ordered
*/
public static final int FORM3_VALUE = 0;
/**
* The '<em><b>CSS</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>CSS</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #CSS
* @model literal="Css"
* @generated
* @ordered
*/
public static final int CSS_VALUE = 0;
/**
* An array of all the '<em><b>Layouting Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final LayoutingEnum[] VALUES_ARRAY =
new LayoutingEnum[] {
HORIZONTAL,
VERTICAL,
GRID,
FORM2,
FORM3,
CSS,
};
/**
* A public read-only list of all the '<em><b>Layouting Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<LayoutingEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Layouting Enum</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static LayoutingEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
LayoutingEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Layouting Enum</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static LayoutingEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
LayoutingEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Layouting Enum</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static LayoutingEnum get(int value) {
switch (value) {
case HORIZONTAL_VALUE: return HORIZONTAL;
}
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 LayoutingEnum(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;
}
} //LayoutingEnum