Package org.nuiton.eugene.models.object
Enum ObjectModelType
- java.lang.Object
-
- java.lang.Enum<ObjectModelType>
-
- org.nuiton.eugene.models.object.ObjectModelType
-
- All Implemented Interfaces:
Serializable
,Comparable<ObjectModelType>
public enum ObjectModelType extends Enum<ObjectModelType>
Enumeration for ObjectModelGenerator. Contains all types available for generating specific ObjectModelElement file. Needed because of inheritance between class, interface and classifier. Method instanceof (previously used) is inadequat so expliciting the ObjectModel type is much better. Created: may 4th 2009- Author:
- Florian Desbois - desbois@codelutin.com
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OBJECT_MODEL
a modelOBJECT_MODEL_CLASS
a classOBJECT_MODEL_CLASSIFIER
a generic classifierOBJECT_MODEL_ENUMERATION
an enumrationOBJECT_MODEL_INTERFACE
an interface
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectModelType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ObjectModelType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OBJECT_MODEL
public static final ObjectModelType OBJECT_MODEL
a model
-
OBJECT_MODEL_ENUMERATION
public static final ObjectModelType OBJECT_MODEL_ENUMERATION
an enumration
-
OBJECT_MODEL_CLASSIFIER
public static final ObjectModelType OBJECT_MODEL_CLASSIFIER
a generic classifier
-
OBJECT_MODEL_CLASS
public static final ObjectModelType OBJECT_MODEL_CLASS
a class
-
OBJECT_MODEL_INTERFACE
public static final ObjectModelType OBJECT_MODEL_INTERFACE
an interface
-
-
Method Detail
-
values
public static ObjectModelType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ObjectModelType c : ObjectModelType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ObjectModelType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-