|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CDOPackageUnit.Type> org.eclipse.emf.cdo.common.model.CDOPackageUnit.Type
Describes the instances of classes
of a package unit
.
Enum Constant Summary | |
---|---|
DYNAMIC
The type of models that are not generated at all but rather dynamically contructed at runtime. |
|
LEGACY
The type of models that are not generated specifically for the usage with CDO. |
|
NATIVE
The type of models that are generated specifically for the usage with CDO. |
|
UNKNOWN
Used to indicate that the type of a model could not be determined. |
Method Summary | |
---|---|
void |
checkNotUnknown()
|
boolean |
isGenerated()
Returns true if this type is either NATIVE or LEGACY , false
otherwise. |
static CDOPackageUnit.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CDOPackageUnit.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CDOPackageUnit.Type NATIVE
classes
of
these models can be directly cast to InternalCDOObject.
public static final CDOPackageUnit.Type LEGACY
classes
of these models can not be directly cast to InternalCDOObject.
public static final CDOPackageUnit.Type DYNAMIC
classes
of these models can be directly cast to InternalCDOObject, i.e. they're
implicitely native.
public static final CDOPackageUnit.Type UNKNOWN
package type registry
on how to deal with this scenario.
Method Detail |
---|
public static CDOPackageUnit.Type[] values()
for (CDOPackageUnit.Type c : CDOPackageUnit.Type.values()) System.out.println(c);
public static CDOPackageUnit.Type valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean isGenerated()
true
if this type is either NATIVE
or LEGACY
, false
otherwise.
public void checkNotUnknown() throws IllegalStateException
IllegalStateException
- if this type is UNKNOWN
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |