
org.bimserver.models.ifc4.IfcBSplineSurfaceForm 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 BSpline Surface Form',
* and utility methods for working with them.
*
* @see org.bimserver.models.ifc4.Ifc4Package#getIfcBSplineSurfaceForm()
* @model
* @generated
*/
public enum IfcBSplineSurfaceForm implements Enumerator {
/**
* The 'NULL' literal object.
*
*
* @see #NULL_VALUE
* @generated
* @ordered
*/
NULL(0, "NULL", "NULL"),
/**
* The 'SURF OF REVOLUTION' literal object.
*
*
* @see #SURF_OF_REVOLUTION_VALUE
* @generated
* @ordered
*/
SURF_OF_REVOLUTION(1, "SURF_OF_REVOLUTION", "SURF_OF_REVOLUTION"),
/**
* The 'UNSPECIFIED' literal object.
*
*
* @see #UNSPECIFIED_VALUE
* @generated
* @ordered
*/
UNSPECIFIED(2, "UNSPECIFIED", "UNSPECIFIED"),
/**
* The 'TOROIDAL SURF' literal object.
*
*
* @see #TOROIDAL_SURF_VALUE
* @generated
* @ordered
*/
TOROIDAL_SURF(3, "TOROIDAL_SURF", "TOROIDAL_SURF"),
/**
* The 'CONICAL SURF' literal object.
*
*
* @see #CONICAL_SURF_VALUE
* @generated
* @ordered
*/
CONICAL_SURF(4, "CONICAL_SURF", "CONICAL_SURF"),
/**
* The 'QUADRIC SURF' literal object.
*
*
* @see #QUADRIC_SURF_VALUE
* @generated
* @ordered
*/
QUADRIC_SURF(5, "QUADRIC_SURF", "QUADRIC_SURF"),
/**
* The 'SURF OF LINEAR EXTRUSION' literal object.
*
*
* @see #SURF_OF_LINEAR_EXTRUSION_VALUE
* @generated
* @ordered
*/
SURF_OF_LINEAR_EXTRUSION(6, "SURF_OF_LINEAR_EXTRUSION", "SURF_OF_LINEAR_EXTRUSION"),
/**
* The 'GENERALISED CONE' literal object.
*
*
* @see #GENERALISED_CONE_VALUE
* @generated
* @ordered
*/
GENERALISED_CONE(7, "GENERALISED_CONE", "GENERALISED_CONE"),
/**
* The 'SPHERICAL SURF' literal object.
*
*
* @see #SPHERICAL_SURF_VALUE
* @generated
* @ordered
*/
SPHERICAL_SURF(8, "SPHERICAL_SURF", "SPHERICAL_SURF"),
/**
* The 'RULED SURF' literal object.
*
*
* @see #RULED_SURF_VALUE
* @generated
* @ordered
*/
RULED_SURF(9, "RULED_SURF", "RULED_SURF"),
/**
* The 'CYLINDRICAL SURF' literal object.
*
*
* @see #CYLINDRICAL_SURF_VALUE
* @generated
* @ordered
*/
CYLINDRICAL_SURF(10, "CYLINDRICAL_SURF", "CYLINDRICAL_SURF"),
/**
* The 'PLANE SURF' literal object.
*
*
* @see #PLANE_SURF_VALUE
* @generated
* @ordered
*/
PLANE_SURF(11, "PLANE_SURF", "PLANE_SURF");
/**
* 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 'SURF OF REVOLUTION' literal value.
*
*
* If the meaning of 'SURF OF REVOLUTION' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SURF_OF_REVOLUTION
* @model
* @generated
* @ordered
*/
public static final int SURF_OF_REVOLUTION_VALUE = 1;
/**
* The 'UNSPECIFIED' literal value.
*
*
* If the meaning of 'UNSPECIFIED' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #UNSPECIFIED
* @model
* @generated
* @ordered
*/
public static final int UNSPECIFIED_VALUE = 2;
/**
* The 'TOROIDAL SURF' literal value.
*
*
* If the meaning of 'TOROIDAL SURF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #TOROIDAL_SURF
* @model
* @generated
* @ordered
*/
public static final int TOROIDAL_SURF_VALUE = 3;
/**
* The 'CONICAL SURF' literal value.
*
*
* If the meaning of 'CONICAL SURF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONICAL_SURF
* @model
* @generated
* @ordered
*/
public static final int CONICAL_SURF_VALUE = 4;
/**
* The 'QUADRIC SURF' literal value.
*
*
* If the meaning of 'QUADRIC SURF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #QUADRIC_SURF
* @model
* @generated
* @ordered
*/
public static final int QUADRIC_SURF_VALUE = 5;
/**
* The 'SURF OF LINEAR EXTRUSION' literal value.
*
*
* If the meaning of 'SURF OF LINEAR EXTRUSION' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SURF_OF_LINEAR_EXTRUSION
* @model
* @generated
* @ordered
*/
public static final int SURF_OF_LINEAR_EXTRUSION_VALUE = 6;
/**
* The 'GENERALISED CONE' literal value.
*
*
* If the meaning of 'GENERALISED CONE' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #GENERALISED_CONE
* @model
* @generated
* @ordered
*/
public static final int GENERALISED_CONE_VALUE = 7;
/**
* The 'SPHERICAL SURF' literal value.
*
*
* If the meaning of 'SPHERICAL SURF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #SPHERICAL_SURF
* @model
* @generated
* @ordered
*/
public static final int SPHERICAL_SURF_VALUE = 8;
/**
* The 'RULED SURF' literal value.
*
*
* If the meaning of 'RULED SURF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #RULED_SURF
* @model
* @generated
* @ordered
*/
public static final int RULED_SURF_VALUE = 9;
/**
* The 'CYLINDRICAL SURF' literal value.
*
*
* If the meaning of 'CYLINDRICAL SURF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CYLINDRICAL_SURF
* @model
* @generated
* @ordered
*/
public static final int CYLINDRICAL_SURF_VALUE = 10;
/**
* The 'PLANE SURF' literal value.
*
*
* If the meaning of 'PLANE SURF' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #PLANE_SURF
* @model
* @generated
* @ordered
*/
public static final int PLANE_SURF_VALUE = 11;
/**
* An array of all the 'Ifc BSpline Surface Form' enumerators.
*
*
* @generated
*/
private static final IfcBSplineSurfaceForm[] VALUES_ARRAY = new IfcBSplineSurfaceForm[] { NULL, SURF_OF_REVOLUTION,
UNSPECIFIED, TOROIDAL_SURF, CONICAL_SURF, QUADRIC_SURF, SURF_OF_LINEAR_EXTRUSION, GENERALISED_CONE,
SPHERICAL_SURF, RULED_SURF, CYLINDRICAL_SURF, PLANE_SURF, };
/**
* A public read-only list of all the 'Ifc BSpline Surface Form' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Ifc BSpline Surface Form' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcBSplineSurfaceForm get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcBSplineSurfaceForm result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc BSpline Surface Form' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcBSplineSurfaceForm getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
IfcBSplineSurfaceForm result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Ifc BSpline Surface Form' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static IfcBSplineSurfaceForm get(int value) {
switch (value) {
case NULL_VALUE:
return NULL;
case SURF_OF_REVOLUTION_VALUE:
return SURF_OF_REVOLUTION;
case UNSPECIFIED_VALUE:
return UNSPECIFIED;
case TOROIDAL_SURF_VALUE:
return TOROIDAL_SURF;
case CONICAL_SURF_VALUE:
return CONICAL_SURF;
case QUADRIC_SURF_VALUE:
return QUADRIC_SURF;
case SURF_OF_LINEAR_EXTRUSION_VALUE:
return SURF_OF_LINEAR_EXTRUSION;
case GENERALISED_CONE_VALUE:
return GENERALISED_CONE;
case SPHERICAL_SURF_VALUE:
return SPHERICAL_SURF;
case RULED_SURF_VALUE:
return RULED_SURF;
case CYLINDRICAL_SURF_VALUE:
return CYLINDRICAL_SURF;
case PLANE_SURF_VALUE:
return PLANE_SURF;
}
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 IfcBSplineSurfaceForm(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;
}
} //IfcBSplineSurfaceForm