
org.bimserver.models.ifc4.IfcWindowPanelOperationEnum 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 Window Panel Operation Enum',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc4.Ifc4Package#getIfcWindowPanelOperationEnum()
* @model
* @generated
*/
public enum IfcWindowPanelOperationEnum implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'SIDEHUNGLEFTHAND' literal object.
*
*
* @see #SIDEHUNGLEFTHAND_VALUE
* @generated
* @ordered
*/
SIDEHUNGLEFTHAND(1, "SIDEHUNGLEFTHAND", "SIDEHUNGLEFTHAND"),
/**
* The 'FIXEDCASEMENT' literal object.
*
*
* @see #FIXEDCASEMENT_VALUE
* @generated
* @ordered
*/
FIXEDCASEMENT(2, "FIXEDCASEMENT", "FIXEDCASEMENT"),
/**
* The 'TILTANDTURNRIGHTHAND' literal object.
*
*
* @see #TILTANDTURNRIGHTHAND_VALUE
* @generated
* @ordered
*/
TILTANDTURNRIGHTHAND(3, "TILTANDTURNRIGHTHAND", "TILTANDTURNRIGHTHAND"),
/**
* The 'NOTDEFINED' literal object.
*
*
* @see #NOTDEFINED_VALUE
* @generated
* @ordered
*/
NOTDEFINED(4, "NOTDEFINED", "NOTDEFINED"),
/**
* The 'TILTANDTURNLEFTHAND' literal object.
*
*
* @see #TILTANDTURNLEFTHAND_VALUE
* @generated
* @ordered
*/
TILTANDTURNLEFTHAND(5, "TILTANDTURNLEFTHAND", "TILTANDTURNLEFTHAND"),
/**
* The 'OTHEROPERATION' literal object.
*
*
* @see #OTHEROPERATION_VALUE
* @generated
* @ordered
*/
OTHEROPERATION(6, "OTHEROPERATION", "OTHEROPERATION"),
/**
* The 'PIVOTHORIZONTAL' literal object.
*
*
* @see #PIVOTHORIZONTAL_VALUE
* @generated
* @ordered
*/
PIVOTHORIZONTAL(7, "PIVOTHORIZONTAL", "PIVOTHORIZONTAL"),
/**
* The 'PIVOTVERTICAL' literal object.
*
*
* @see #PIVOTVERTICAL_VALUE
* @generated
* @ordered
*/
PIVOTVERTICAL(8, "PIVOTVERTICAL", "PIVOTVERTICAL"),
/**
* The 'SLIDINGHORIZONTAL' literal object.
*
*
* @see #SLIDINGHORIZONTAL_VALUE
* @generated
* @ordered
*/
SLIDINGHORIZONTAL(9, "SLIDINGHORIZONTAL", "SLIDINGHORIZONTAL"),
/**
* The 'TOPHUNG' literal object.
*
*
* @see #TOPHUNG_VALUE
* @generated
* @ordered
*/
TOPHUNG(10, "TOPHUNG", "TOPHUNG"),
/**
* The 'BOTTOMHUNG' literal object.
*
*
* @see #BOTTOMHUNG_VALUE
* @generated
* @ordered
*/
BOTTOMHUNG(11, "BOTTOMHUNG", "BOTTOMHUNG"),
/**
* The 'SLIDINGVERTICAL' literal object.
*
*
* @see #SLIDINGVERTICAL_VALUE
* @generated
* @ordered
*/
SLIDINGVERTICAL(12, "SLIDINGVERTICAL", "SLIDINGVERTICAL"),
/**
* The 'SIDEHUNGRIGHTHAND' literal object.
*
*
* @see #SIDEHUNGRIGHTHAND_VALUE
* @generated
* @ordered
*/
SIDEHUNGRIGHTHAND(13, "SIDEHUNGRIGHTHAND", "SIDEHUNGRIGHTHAND"),
/**
* The 'REMOVABLECASEMENT' literal object.
*
*
* @see #REMOVABLECASEMENT_VALUE
* @generated
* @ordered
*/
REMOVABLECASEMENT(14, "REMOVABLECASEMENT", "REMOVABLECASEMENT");
/**
* 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 'SIDEHUNGLEFTHAND' literal value.
*
*
* If the meaning of 'SIDEHUNGLEFTHAND' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SIDEHUNGLEFTHAND
* @model
* @generated
* @ordered
*/
public static final int SIDEHUNGLEFTHAND_VALUE = 1;
/**
* The 'FIXEDCASEMENT' literal value.
*
*
* If the meaning of 'FIXEDCASEMENT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #FIXEDCASEMENT
* @model
* @generated
* @ordered
*/
public static final int FIXEDCASEMENT_VALUE = 2;
/**
* The 'TILTANDTURNRIGHTHAND' literal value.
*
*
* If the meaning of 'TILTANDTURNRIGHTHAND' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #TILTANDTURNRIGHTHAND
* @model
* @generated
* @ordered
*/
public static final int TILTANDTURNRIGHTHAND_VALUE = 3;
/**
* 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 = 4;
/**
* The 'TILTANDTURNLEFTHAND' literal value.
*
*
* If the meaning of 'TILTANDTURNLEFTHAND' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #TILTANDTURNLEFTHAND
* @model
* @generated
* @ordered
*/
public static final int TILTANDTURNLEFTHAND_VALUE = 5;
/**
* The 'OTHEROPERATION' literal value.
*
*
* If the meaning of 'OTHEROPERATION' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #OTHEROPERATION
* @model
* @generated
* @ordered
*/
public static final int OTHEROPERATION_VALUE = 6;
/**
* The 'PIVOTHORIZONTAL' literal value.
*
*
* If the meaning of 'PIVOTHORIZONTAL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PIVOTHORIZONTAL
* @model
* @generated
* @ordered
*/
public static final int PIVOTHORIZONTAL_VALUE = 7;
/**
* The 'PIVOTVERTICAL' literal value.
*
*
* If the meaning of 'PIVOTVERTICAL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PIVOTVERTICAL
* @model
* @generated
* @ordered
*/
public static final int PIVOTVERTICAL_VALUE = 8;
/**
* The 'SLIDINGHORIZONTAL' literal value.
*
*
* If the meaning of 'SLIDINGHORIZONTAL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SLIDINGHORIZONTAL
* @model
* @generated
* @ordered
*/
public static final int SLIDINGHORIZONTAL_VALUE = 9;
/**
* The 'TOPHUNG' literal value.
*
*
* If the meaning of 'TOPHUNG' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #TOPHUNG
* @model
* @generated
* @ordered
*/
public static final int TOPHUNG_VALUE = 10;
/**
* The 'BOTTOMHUNG' literal value.
*
*
* If the meaning of 'BOTTOMHUNG' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #BOTTOMHUNG
* @model
* @generated
* @ordered
*/
public static final int BOTTOMHUNG_VALUE = 11;
/**
* The 'SLIDINGVERTICAL' literal value.
*
*
* If the meaning of 'SLIDINGVERTICAL' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SLIDINGVERTICAL
* @model
* @generated
* @ordered
*/
public static final int SLIDINGVERTICAL_VALUE = 12;
/**
* The 'SIDEHUNGRIGHTHAND' literal value.
*
*
* If the meaning of 'SIDEHUNGRIGHTHAND' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SIDEHUNGRIGHTHAND
* @model
* @generated
* @ordered
*/
public static final int SIDEHUNGRIGHTHAND_VALUE = 13;
/**
* The 'REMOVABLECASEMENT' literal value.
*
*
* If the meaning of 'REMOVABLECASEMENT' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #REMOVABLECASEMENT
* @model
* @generated
* @ordered
*/
public static final int REMOVABLECASEMENT_VALUE = 14;
/**
* An array of all the 'Ifc Window Panel Operation Enum' enumerators.
*
*
* @generated
*/
private static final IfcWindowPanelOperationEnum[] VALUES_ARRAY = new IfcWindowPanelOperationEnum[] { NULL,
SIDEHUNGLEFTHAND, FIXEDCASEMENT, TILTANDTURNRIGHTHAND, NOTDEFINED, TILTANDTURNLEFTHAND, OTHEROPERATION,
PIVOTHORIZONTAL, PIVOTVERTICAL, SLIDINGHORIZONTAL, TOPHUNG, BOTTOMHUNG, SLIDINGVERTICAL, SIDEHUNGRIGHTHAND,
REMOVABLECASEMENT, };
/**
* A public read-only list of all the 'Ifc Window Panel Operation Enum' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections
.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc Window Panel Operation Enum' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcWindowPanelOperationEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcWindowPanelOperationEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Window Panel Operation Enum' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcWindowPanelOperationEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcWindowPanelOperationEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc Window Panel Operation Enum' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcWindowPanelOperationEnum get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case SIDEHUNGLEFTHAND_VALUE:
return SIDEHUNGLEFTHAND;
case FIXEDCASEMENT_VALUE:
return FIXEDCASEMENT;
case TILTANDTURNRIGHTHAND_VALUE:
return TILTANDTURNRIGHTHAND;
case NOTDEFINED_VALUE:
return NOTDEFINED;
case TILTANDTURNLEFTHAND_VALUE:
return TILTANDTURNLEFTHAND;
case OTHEROPERATION_VALUE:
return OTHEROPERATION;
case PIVOTHORIZONTAL_VALUE:
return PIVOTHORIZONTAL;
case PIVOTVERTICAL_VALUE:
return PIVOTVERTICAL;
case SLIDINGHORIZONTAL_VALUE:
return SLIDINGHORIZONTAL;
case TOPHUNG_VALUE:
return TOPHUNG;
case BOTTOMHUNG_VALUE:
return BOTTOMHUNG;
case SLIDINGVERTICAL_VALUE:
return SLIDINGVERTICAL;
case SIDEHUNGRIGHTHAND_VALUE:
return SIDEHUNGRIGHTHAND;
case REMOVABLECASEMENT_VALUE:
return REMOVABLECASEMENT;
}
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 IfcWindowPanelOperationEnum(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;
}
} //IfcWindowPanelOperationEnum