Package org.eclipse.emf.cdo.common.model
Enum Class CDOPackageUnit.Type
- All Implemented Interfaces:
Serializable
,Comparable<CDOPackageUnit.Type>
,Constable
- Enclosing interface:
- CDOPackageUnit
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe type of models that are not generated at all but rather dynamically constructed at runtime.The type of models that are not generated specifically for the usage with CDO.The type of models that are generated specifically for the usage with CDO.Used to indicate that the type of a model could not be determined. -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
static CDOPackageUnit.Type
Returns the enum constant of this class with the specified name.static CDOPackageUnit.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NATIVE
-
LEGACY
-
DYNAMIC
-
UNKNOWN
Used to indicate that the type of a model could not be determined. Refer to thepackage type registry
on how to deal with this scenario.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isGenerated
public boolean isGenerated() -
checkNotUnknown
- Throws:
IllegalStateException
- if this type isUNKNOWN
.
-