org.bimserver.models.store.PluginType Maven / Gradle / Ivy
/**
* Copyright (C) 2009-2014 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package org.bimserver.models.store;
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 'Plugin Type',
* and utility methods for working with them.
*
* @see org.bimserver.models.store.StorePackage#getPluginType()
* @model
* @generated
*/
public enum PluginType implements Enumerator {
/**
* The 'SERIALIZER' literal object.
*
*
* @see #SERIALIZER_VALUE
* @generated
* @ordered
*/
SERIALIZER(0, "SERIALIZER", "SERIALIZER"),
/**
* The 'DESERIALIZER' literal object.
*
*
* @see #DESERIALIZER_VALUE
* @generated
* @ordered
*/
DESERIALIZER(1, "DESERIALIZER", "DESERIALIZER"),
/**
* The 'RENDER ENGINE' literal object.
*
*
* @see #RENDER_ENGINE_VALUE
* @generated
* @ordered
*/
RENDER_ENGINE(2, "RENDER_ENGINE", "RENDER_ENGINE"),
/**
* The 'QUERY ENGINE' literal object.
*
*
* @see #QUERY_ENGINE_VALUE
* @generated
* @ordered
*/
QUERY_ENGINE(3, "QUERY_ENGINE", "QUERY_ENGINE"),
/**
* The 'OBJECT IDM' literal object.
*
*
* @see #OBJECT_IDM_VALUE
* @generated
* @ordered
*/
OBJECT_IDM(4, "OBJECT_IDM", "OBJECT_IDM"),
/**
* The 'WEB MODULE' literal object.
*
*
* @see #WEB_MODULE_VALUE
* @generated
* @ordered
*/
WEB_MODULE(5, "WEB_MODULE", "WEB_MODULE"),
/**
* The 'MODEL MERGER' literal object.
*
*
* @see #MODEL_MERGER_VALUE
* @generated
* @ordered
*/
MODEL_MERGER(6, "MODEL_MERGER", "MODEL_MERGER"),
/**
* The 'MODEL COMPARE' literal object.
*
*
* @see #MODEL_COMPARE_VALUE
* @generated
* @ordered
*/
MODEL_COMPARE(7, "MODEL_COMPARE", "MODEL_COMPARE"),
/**
* The 'MODEL CHECKER' literal object.
*
*
* @see #MODEL_CHECKER_VALUE
* @generated
* @ordered
*/
MODEL_CHECKER(8, "MODEL_CHECKER", "MODEL_CHECKER"),
/**
* The 'STILL IMAGE RENDER' literal object.
*
*
* @see #STILL_IMAGE_RENDER_VALUE
* @generated
* @ordered
*/
STILL_IMAGE_RENDER(9, "STILL_IMAGE_RENDER", "STILL_IMAGE_RENDER"),
/**
* The 'SERVICE' literal object.
*
*
* @see #SERVICE_VALUE
* @generated
* @ordered
*/
SERVICE(10, "SERVICE", "SERVICE");
/**
* The 'SERIALIZER' literal value.
*
*
* If the meaning of 'SERIALIZER' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SERIALIZER
* @model
* @generated
* @ordered
*/
public static final int SERIALIZER_VALUE = 0;
/**
* The 'DESERIALIZER' literal value.
*
*
* If the meaning of 'DESERIALIZER' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DESERIALIZER
* @model
* @generated
* @ordered
*/
public static final int DESERIALIZER_VALUE = 1;
/**
* The 'RENDER ENGINE' literal value.
*
*
* If the meaning of 'RENDER ENGINE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #RENDER_ENGINE
* @model
* @generated
* @ordered
*/
public static final int RENDER_ENGINE_VALUE = 2;
/**
* The 'QUERY ENGINE' literal value.
*
*
* If the meaning of 'QUERY ENGINE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #QUERY_ENGINE
* @model
* @generated
* @ordered
*/
public static final int QUERY_ENGINE_VALUE = 3;
/**
* The 'OBJECT IDM' literal value.
*
*
* If the meaning of 'OBJECT IDM' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #OBJECT_IDM
* @model
* @generated
* @ordered
*/
public static final int OBJECT_IDM_VALUE = 4;
/**
* The 'WEB MODULE' literal value.
*
*
* If the meaning of 'WEB MODULE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #WEB_MODULE
* @model
* @generated
* @ordered
*/
public static final int WEB_MODULE_VALUE = 5;
/**
* The 'MODEL MERGER' literal value.
*
*
* If the meaning of 'MODEL MERGER' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MODEL_MERGER
* @model
* @generated
* @ordered
*/
public static final int MODEL_MERGER_VALUE = 6;
/**
* The 'MODEL COMPARE' literal value.
*
*
* If the meaning of 'MODEL COMPARE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MODEL_COMPARE
* @model
* @generated
* @ordered
*/
public static final int MODEL_COMPARE_VALUE = 7;
/**
* The 'MODEL CHECKER' literal value.
*
*
* If the meaning of 'MODEL CHECKER' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MODEL_CHECKER
* @model
* @generated
* @ordered
*/
public static final int MODEL_CHECKER_VALUE = 8;
/**
* The 'STILL IMAGE RENDER' literal value.
*
*
* If the meaning of 'STILL IMAGE RENDER' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #STILL_IMAGE_RENDER
* @model
* @generated
* @ordered
*/
public static final int STILL_IMAGE_RENDER_VALUE = 9;
/**
* The 'SERVICE' literal value.
*
*
* If the meaning of 'SERVICE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SERVICE
* @model
* @generated
* @ordered
*/
public static final int SERVICE_VALUE = 10;
/**
* An array of all the 'Plugin Type' enumerators.
*
*
* @generated
*/
private static final PluginType[] VALUES_ARRAY = new PluginType[] { SERIALIZER, DESERIALIZER, RENDER_ENGINE, QUERY_ENGINE, OBJECT_IDM, WEB_MODULE, MODEL_MERGER, MODEL_COMPARE, MODEL_CHECKER, STILL_IMAGE_RENDER,
SERVICE, };
/**
* A public read-only list of all the 'Plugin Type' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Plugin Type' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static PluginType get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
PluginType result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Plugin Type' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static PluginType getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
PluginType result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Plugin Type' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static PluginType get(int value) {
switch (value) {
case SERIALIZER_VALUE:
return SERIALIZER;
case DESERIALIZER_VALUE:
return DESERIALIZER;
case RENDER_ENGINE_VALUE:
return RENDER_ENGINE;
case QUERY_ENGINE_VALUE:
return QUERY_ENGINE;
case OBJECT_IDM_VALUE:
return OBJECT_IDM;
case WEB_MODULE_VALUE:
return WEB_MODULE;
case MODEL_MERGER_VALUE:
return MODEL_MERGER;
case MODEL_COMPARE_VALUE:
return MODEL_COMPARE;
case MODEL_CHECKER_VALUE:
return MODEL_CHECKER;
case STILL_IMAGE_RENDER_VALUE:
return STILL_IMAGE_RENDER;
case SERVICE_VALUE:
return SERVICE;
}
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 PluginType(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;
}
} //PluginType