org.bimserver.models.ifc4.IfcObjectiveEnum Maven / Gradle / Ivy
Show all versions of pluginbase Show documentation
/**
* 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 Objective Enum',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc4.Ifc4Package#getIfcObjectiveEnum()
* @model
* @generated
*/
public enum IfcObjectiveEnum implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'HEALTHANDSAFETY' literal object.
*
*
* @see #HEALTHANDSAFETY_VALUE
* @generated
* @ordered
*/
HEALTHANDSAFETY(1, "HEALTHANDSAFETY", "HEALTHANDSAFETY"),
/**
* The 'MODELVIEW' literal object.
*
*
* @see #MODELVIEW_VALUE
* @generated
* @ordered
*/
MODELVIEW(2, "MODELVIEW", "MODELVIEW"),
/**
* The 'MERGECONFLICT' literal object.
*
*
* @see #MERGECONFLICT_VALUE
* @generated
* @ordered
*/
MERGECONFLICT(3, "MERGECONFLICT", "MERGECONFLICT"),
/**
* The 'TRIGGERCONDITION' literal object.
*
*
* @see #TRIGGERCONDITION_VALUE
* @generated
* @ordered
*/
TRIGGERCONDITION(4, "TRIGGERCONDITION", "TRIGGERCONDITION"),
/**
* The 'USERDEFINED' literal object.
*
*
* @see #USERDEFINED_VALUE
* @generated
* @ordered
*/
USERDEFINED(5, "USERDEFINED", "USERDEFINED"),
/**
* The 'SPECIFICATION' literal object.
*
*
* @see #SPECIFICATION_VALUE
* @generated
* @ordered
*/
SPECIFICATION(6, "SPECIFICATION", "SPECIFICATION"),
/**
* The 'CODECOMPLIANCE' literal object.
*
*
* @see #CODECOMPLIANCE_VALUE
* @generated
* @ordered
*/
CODECOMPLIANCE(7, "CODECOMPLIANCE", "CODECOMPLIANCE"),
/**
* The 'CODEWAIVER' literal object.
*
*
* @see #CODEWAIVER_VALUE
* @generated
* @ordered
*/
CODEWAIVER(8, "CODEWAIVER", "CODEWAIVER"),
/**
* The 'NOTDEFINED' literal object.
*
*
* @see #NOTDEFINED_VALUE
* @generated
* @ordered
*/
NOTDEFINED(9, "NOTDEFINED", "NOTDEFINED"),
/**
* The 'EXTERNAL' literal object.
*
*
* @see #EXTERNAL_VALUE
* @generated
* @ordered
*/
EXTERNAL(10, "EXTERNAL", "EXTERNAL"),
/**
* The 'DESIGNINTENT' literal object.
*
*
* @see #DESIGNINTENT_VALUE
* @generated
* @ordered
*/
DESIGNINTENT(11, "DESIGNINTENT", "DESIGNINTENT"),
/**
* The 'PARAMETER' literal object.
*
*
* @see #PARAMETER_VALUE
* @generated
* @ordered
*/
PARAMETER(12, "PARAMETER", "PARAMETER"),
/**
* The 'REQUIREMENT' literal object.
*
*
* @see #REQUIREMENT_VALUE
* @generated
* @ordered
*/
REQUIREMENT(13, "REQUIREMENT", "REQUIREMENT");
/**
* 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 'HEALTHANDSAFETY' literal value.
*
*
* If the meaning of 'HEALTHANDSAFETY' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #HEALTHANDSAFETY
* @model
* @generated
* @ordered
*/
public static final int HEALTHANDSAFETY_VALUE = 1;
/**
* The 'MODELVIEW' literal value.
*
*
* If the meaning of 'MODELVIEW' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MODELVIEW
* @model
* @generated
* @ordered
*/
public static final int MODELVIEW_VALUE = 2;
/**
* The 'MERGECONFLICT' literal value.
*
*
* If the meaning of 'MERGECONFLICT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #MERGECONFLICT
* @model
* @generated
* @ordered
*/
public static final int MERGECONFLICT_VALUE = 3;
/**
* The 'TRIGGERCONDITION' literal value.
*
*
* If the meaning of 'TRIGGERCONDITION' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #TRIGGERCONDITION
* @model
* @generated
* @ordered
*/
public static final int TRIGGERCONDITION_VALUE = 4;
/**
* The 'USERDEFINED' literal value.
*
*
* If the meaning of 'USERDEFINED' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #USERDEFINED
* @model
* @generated
* @ordered
*/
public static final int USERDEFINED_VALUE = 5;
/**
* The 'SPECIFICATION' literal value.
*
*
* If the meaning of 'SPECIFICATION' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SPECIFICATION
* @model
* @generated
* @ordered
*/
public static final int SPECIFICATION_VALUE = 6;
/**
* The 'CODECOMPLIANCE' literal value.
*
*
* If the meaning of 'CODECOMPLIANCE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CODECOMPLIANCE
* @model
* @generated
* @ordered
*/
public static final int CODECOMPLIANCE_VALUE = 7;
/**
* The 'CODEWAIVER' literal value.
*
*
* If the meaning of 'CODEWAIVER' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CODEWAIVER
* @model
* @generated
* @ordered
*/
public static final int CODEWAIVER_VALUE = 8;
/**
* The 'NOTDEFINED' literal value.
*
*
* If the meaning of 'NOTDEFINED' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #NOTDEFINED
* @model
* @generated
* @ordered
*/
public static final int NOTDEFINED_VALUE = 9;
/**
* The 'EXTERNAL' literal value.
*
*
* If the meaning of 'EXTERNAL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #EXTERNAL
* @model
* @generated
* @ordered
*/
public static final int EXTERNAL_VALUE = 10;
/**
* The 'DESIGNINTENT' literal value.
*
*
* If the meaning of 'DESIGNINTENT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #DESIGNINTENT
* @model
* @generated
* @ordered
*/
public static final int DESIGNINTENT_VALUE = 11;
/**
* The 'PARAMETER' literal value.
*
*
* If the meaning of 'PARAMETER' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PARAMETER
* @model
* @generated
* @ordered
*/
public static final int PARAMETER_VALUE = 12;
/**
* The 'REQUIREMENT' literal value.
*
*
* If the meaning of 'REQUIREMENT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #REQUIREMENT
* @model
* @generated
* @ordered
*/
public static final int REQUIREMENT_VALUE = 13;
/**
* An array of all the 'Ifc Objective Enum' enumerators.
*
*
* @generated
*/
private static final IfcObjectiveEnum[] VALUES_ARRAY = new IfcObjectiveEnum[] { NULL, HEALTHANDSAFETY, MODELVIEW,
MERGECONFLICT, TRIGGERCONDITION, USERDEFINED, SPECIFICATION, CODECOMPLIANCE, CODEWAIVER, NOTDEFINED,
EXTERNAL, DESIGNINTENT, PARAMETER, REQUIREMENT, };
/**
* A public read-only list of all the 'Ifc Objective Enum' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc Objective Enum' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcObjectiveEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcObjectiveEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Objective Enum' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcObjectiveEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcObjectiveEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Objective Enum' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcObjectiveEnum get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case HEALTHANDSAFETY_VALUE:
return HEALTHANDSAFETY;
case MODELVIEW_VALUE:
return MODELVIEW;
case MERGECONFLICT_VALUE:
return MERGECONFLICT;
case TRIGGERCONDITION_VALUE:
return TRIGGERCONDITION;
case USERDEFINED_VALUE:
return USERDEFINED;
case SPECIFICATION_VALUE:
return SPECIFICATION;
case CODECOMPLIANCE_VALUE:
return CODECOMPLIANCE;
case CODEWAIVER_VALUE:
return CODEWAIVER;
case NOTDEFINED_VALUE:
return NOTDEFINED;
case EXTERNAL_VALUE:
return EXTERNAL;
case DESIGNINTENT_VALUE:
return DESIGNINTENT;
case PARAMETER_VALUE:
return PARAMETER;
case REQUIREMENT_VALUE:
return REQUIREMENT;
}
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 IfcObjectiveEnum(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;
}
} //IfcObjectiveEnum