org.nasdanika.html.model.app.NavigationPanelStyle Maven / Gradle / Ivy
/**
*/
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 'Navigation Panel Style',
* and utility methods for working with them.
*
* @see org.nasdanika.html.model.app.AppPackage#getNavigationPanelStyle()
* @model
* @generated
*/
public enum NavigationPanelStyle implements Enumerator {
/**
* The 'Auto' literal object.
*
*
* @see #AUTO_VALUE
* @generated
* @ordered
*/
AUTO(0, "Auto", "Auto"),
/**
* The 'Cards' literal object.
*
*
* @see #CARDS_VALUE
* @generated
* @ordered
*/
CARDS(1, "Cards", "Cards"),
/**
* The 'Collapsible Cards' literal object.
*
*
* @see #COLLAPSIBLE_CARDS_VALUE
* @generated
* @ordered
*/
COLLAPSIBLE_CARDS(2, "CollapsibleCards", "CollapsibleCards"), /**
* The 'Tree' literal object.
*
*
* @see #TREE_VALUE
* @generated
* @ordered
*/
TREE(3, "Tree", "Tree"), /**
* The 'Searchable Tree' literal object.
*
*
* @see #SEARCHABLE_TREE_VALUE
* @generated
* @ordered
*/
SEARCHABLE_TREE(4, "SearchableTree", "SearchableTree");
/**
* The 'Auto' literal value.
*
*
* @see #AUTO
* @model name="Auto"
* @generated
* @ordered
*/
public static final int AUTO_VALUE = 0;
/**
* The 'Cards' literal value.
*
*
* @see #CARDS
* @model name="Cards"
* @generated
* @ordered
*/
public static final int CARDS_VALUE = 1;
/**
* The 'Collapsible Cards' literal value.
*
*
* @see #COLLAPSIBLE_CARDS
* @model name="CollapsibleCards"
* @generated
* @ordered
*/
public static final int COLLAPSIBLE_CARDS_VALUE = 2;
/**
* The 'Tree' literal value.
*
*
* @see #TREE
* @model name="Tree"
* @generated
* @ordered
*/
public static final int TREE_VALUE = 3;
/**
* The 'Searchable Tree' literal value.
*
*
* @see #SEARCHABLE_TREE
* @model name="SearchableTree"
* @generated
* @ordered
*/
public static final int SEARCHABLE_TREE_VALUE = 4;
/**
* An array of all the 'Navigation Panel Style' enumerators.
*
*
* @generated
*/
private static final NavigationPanelStyle[] VALUES_ARRAY =
new NavigationPanelStyle[] {
AUTO,
CARDS,
COLLAPSIBLE_CARDS,
TREE,
SEARCHABLE_TREE,
};
/**
* A public read-only list of all the 'Navigation Panel Style' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Navigation Panel Style' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static NavigationPanelStyle get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
NavigationPanelStyle result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Navigation Panel Style' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static NavigationPanelStyle getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
NavigationPanelStyle result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Navigation Panel Style' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static NavigationPanelStyle get(int value) {
switch (value) {
case AUTO_VALUE: return AUTO;
case CARDS_VALUE: return CARDS;
case COLLAPSIBLE_CARDS_VALUE: return COLLAPSIBLE_CARDS;
case TREE_VALUE: return TREE;
case SEARCHABLE_TREE_VALUE: return SEARCHABLE_TREE;
}
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 NavigationPanelStyle(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;
}
} //NavigationPanelStyle