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

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

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.ifc2x3tc1.Ifc2x3tc1Package#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 'LESSTHAN' literal object.
	 * 
	 * 
	 * @see #LESSTHAN_VALUE
	 * @generated
	 * @ordered
	 */
	LESSTHAN(2, "LESSTHAN", "LESSTHAN"),

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

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

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

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

	/**
	 * 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 '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 = 2; /** * 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 = 3; /** * 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 = 4; /** * 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 = 5; /** * 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 = 6; /** * An array of all the 'Ifc Benchmark Enum' enumerators. * * * @generated */ private static final IfcBenchmarkEnum[] VALUES_ARRAY = new IfcBenchmarkEnum[] { NULL, LESSTHANOREQUALTO, LESSTHAN, NOTEQUALTO, EQUALTO, GREATERTHAN, GREATERTHANOREQUALTO, }; /** * 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 LESSTHAN_VALUE: return LESSTHAN; case NOTEQUALTO_VALUE: return NOTEQUALTO; case EQUALTO_VALUE: return EQUALTO; case GREATERTHAN_VALUE: return GREATERTHAN; case GREATERTHANOREQUALTO_VALUE: return GREATERTHANOREQUALTO; } 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