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

org.bimserver.models.ifc4.IfcBenchmarkEnum 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.ifc4;

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 'Ifc Benchmark Enum',
 * and utility methods for working with them.
 * 
 * @see org.bimserver.models.ifc4.Ifc4Package#getIfcBenchmarkEnum()
 * @model
 * @generated
 */
public enum IfcBenchmarkEnum implements Enumerator {
	/**
	 * The 'NULL' literal object.
	 * 
	 * 
	 * @see #NULL_VALUE
	 * @generated
	 * @ordered
	 */
	NULL(0, "NULL", "NULL"),

	/**
	 * The 'LESSTHANOREQUALTO' literal object.
	 * 
	 * 
	 * @see #LESSTHANOREQUALTO_VALUE
	 * @generated
	 * @ordered
	 */
	LESSTHANOREQUALTO(1, "LESSTHANOREQUALTO", "LESSTHANOREQUALTO"),

	/**
	 * The 'NOTINCLUDEDIN' literal object.
	 * 
	 * 
	 * @see #NOTINCLUDEDIN_VALUE
	 * @generated
	 * @ordered
	 */
	NOTINCLUDEDIN(2, "NOTINCLUDEDIN", "NOTINCLUDEDIN"),

	/**
	 * The 'LESSTHAN' literal object.
	 * 
	 * 
	 * @see #LESSTHAN_VALUE
	 * @generated
	 * @ordered
	 */
	LESSTHAN(3, "LESSTHAN", "LESSTHAN"),

	/**
	 * The 'NOTEQUALTO' literal object.
	 * 
	 * 
	 * @see #NOTEQUALTO_VALUE
	 * @generated
	 * @ordered
	 */
	NOTEQUALTO(4, "NOTEQUALTO", "NOTEQUALTO"),

	/**
	 * The 'EQUALTO' literal object.
	 * 
	 * 
	 * @see #EQUALTO_VALUE
	 * @generated
	 * @ordered
	 */
	EQUALTO(5, "EQUALTO", "EQUALTO"),

	/**
	 * The 'INCLUDES' literal object.
	 * 
	 * 
	 * @see #INCLUDES_VALUE
	 * @generated
	 * @ordered
	 */
	INCLUDES(6, "INCLUDES", "INCLUDES"),

	/**
	 * The 'INCLUDEDIN' literal object.
	 * 
	 * 
	 * @see #INCLUDEDIN_VALUE
	 * @generated
	 * @ordered
	 */
	INCLUDEDIN(7, "INCLUDEDIN", "INCLUDEDIN"),

	/**
	 * The 'GREATERTHAN' literal object.
	 * 
	 * 
	 * @see #GREATERTHAN_VALUE
	 * @generated
	 * @ordered
	 */
	GREATERTHAN(8, "GREATERTHAN", "GREATERTHAN"),

	/**
	 * The 'GREATERTHANOREQUALTO' literal object.
	 * 
	 * 
	 * @see #GREATERTHANOREQUALTO_VALUE
	 * @generated
	 * @ordered
	 */
	GREATERTHANOREQUALTO(9, "GREATERTHANOREQUALTO", "GREATERTHANOREQUALTO"),

	/**
	 * The 'NOTINCLUDES' literal object.
	 * 
	 * 
	 * @see #NOTINCLUDES_VALUE
	 * @generated
	 * @ordered
	 */
	NOTINCLUDES(10, "NOTINCLUDES", "NOTINCLUDES");

	/**
	 * The 'NULL' literal value.
	 * 
	 * 

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

* * @see #NULL * @model * @generated * @ordered */ public static final int NULL_VALUE = 0; /** * The 'LESSTHANOREQUALTO' literal value. * *

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

* * @see #LESSTHANOREQUALTO * @model * @generated * @ordered */ public static final int LESSTHANOREQUALTO_VALUE = 1; /** * The 'NOTINCLUDEDIN' literal value. * *

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

* * @see #NOTINCLUDEDIN * @model * @generated * @ordered */ public static final int NOTINCLUDEDIN_VALUE = 2; /** * The 'LESSTHAN' literal value. * *

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

* * @see #LESSTHAN * @model * @generated * @ordered */ public static final int LESSTHAN_VALUE = 3; /** * The 'NOTEQUALTO' literal value. * *

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

* * @see #NOTEQUALTO * @model * @generated * @ordered */ public static final int NOTEQUALTO_VALUE = 4; /** * The 'EQUALTO' literal value. * *

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

* * @see #EQUALTO * @model * @generated * @ordered */ public static final int EQUALTO_VALUE = 5; /** * The 'INCLUDES' literal value. * *

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

* * @see #INCLUDES * @model * @generated * @ordered */ public static final int INCLUDES_VALUE = 6; /** * The 'INCLUDEDIN' literal value. * *

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

* * @see #INCLUDEDIN * @model * @generated * @ordered */ public static final int INCLUDEDIN_VALUE = 7; /** * The 'GREATERTHAN' literal value. * *

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

* * @see #GREATERTHAN * @model * @generated * @ordered */ public static final int GREATERTHAN_VALUE = 8; /** * The 'GREATERTHANOREQUALTO' literal value. * *

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

* * @see #GREATERTHANOREQUALTO * @model * @generated * @ordered */ public static final int GREATERTHANOREQUALTO_VALUE = 9; /** * The 'NOTINCLUDES' literal value. * *

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

* * @see #NOTINCLUDES * @model * @generated * @ordered */ public static final int NOTINCLUDES_VALUE = 10; /** * An array of all the 'Ifc Benchmark Enum' enumerators. * * * @generated */ private static final IfcBenchmarkEnum[] VALUES_ARRAY = new IfcBenchmarkEnum[] { NULL, LESSTHANOREQUALTO, NOTINCLUDEDIN, LESSTHAN, NOTEQUALTO, EQUALTO, INCLUDES, INCLUDEDIN, GREATERTHAN, GREATERTHANOREQUALTO, NOTINCLUDES, }; /** * A public read-only list of all the 'Ifc Benchmark Enum' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Ifc Benchmark Enum' literal with the specified literal value. * * * @param literal the literal. * @return the matching enumerator or null. * @generated */ public static IfcBenchmarkEnum get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcBenchmarkEnum result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Ifc Benchmark Enum' literal with the specified name. * * * @param name the name. * @return the matching enumerator or null. * @generated */ public static IfcBenchmarkEnum getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { IfcBenchmarkEnum result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Ifc Benchmark Enum' literal with the specified integer value. * * * @param value the integer value. * @return the matching enumerator or null. * @generated */ public static IfcBenchmarkEnum get(int value) { switch (value) { case NULL_VALUE: return NULL; case LESSTHANOREQUALTO_VALUE: return LESSTHANOREQUALTO; case NOTINCLUDEDIN_VALUE: return NOTINCLUDEDIN; case LESSTHAN_VALUE: return LESSTHAN; case NOTEQUALTO_VALUE: return NOTEQUALTO; case EQUALTO_VALUE: return EQUALTO; case INCLUDES_VALUE: return INCLUDES; case INCLUDEDIN_VALUE: return INCLUDEDIN; case GREATERTHAN_VALUE: return GREATERTHAN; case GREATERTHANOREQUALTO_VALUE: return GREATERTHANOREQUALTO; case NOTINCLUDES_VALUE: return NOTINCLUDES; } 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 IfcBenchmarkEnum(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; } } //IfcBenchmarkEnum




© 2015 - 2024 Weber Informatics LLC | Privacy Policy