Package org.eclipse.emf.cdo.common.model
Enum CDOPackageUnit.Type
- java.lang.Object
- 
- java.lang.Enum<CDOPackageUnit.Type>
- 
- org.eclipse.emf.cdo.common.model.CDOPackageUnit.Type
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<CDOPackageUnit.Type>
 - Enclosing interface:
- CDOPackageUnit
 
 public static enum CDOPackageUnit.Type extends java.lang.Enum<CDOPackageUnit.Type> - Author:
- Eike Stepper
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description DYNAMICThe type of models that are not generated at all but rather dynamically constructed at runtime.LEGACYThe type of models that are not generated specifically for the usage with CDO.NATIVEThe type of models that are generated specifically for the usage with CDO.UNKNOWNUsed to indicate that the type of a model could not be determined.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckNotUnknown()booleanisGenerated()static CDOPackageUnit.TypevalueOf(java.lang.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.
 
- 
- 
- 
Enum Constant Detail- 
NATIVEpublic static final CDOPackageUnit.Type NATIVE The type of models that are generated specifically for the usage with CDO.Instancesofclassesof these models can be directly cast toCDOObject.
 - 
LEGACYpublic static final CDOPackageUnit.Type LEGACY The type of models that are not generated specifically for the usage with CDO.Instancesofclassesof these models can not be directly cast toCDOObject. The static utility methodCDOUtil.getCDOObject(eObject)can be used to obtain aCDOObject.
 - 
DYNAMICpublic static final CDOPackageUnit.Type DYNAMIC The type of models that are not generated at all but rather dynamically constructed at runtime.Instancesofclassesof these models can be directly cast toCDOObject, i.e. they're implicitlyNATIVE.
 - 
UNKNOWNpublic static final CDOPackageUnit.Type UNKNOWN Used to indicate that the type of a model could not be determined. Refer to thepackage type registryon how to deal with this scenario.
 
- 
 - 
Method Detail- 
valuespublic static CDOPackageUnit.Type[] 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 (CDOPackageUnit.Type c : CDOPackageUnit.Type.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static CDOPackageUnit.Type valueOf(java.lang.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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
isGeneratedpublic boolean isGenerated() 
 - 
checkNotUnknownpublic void checkNotUnknown() throws java.lang.IllegalStateException- Throws:
- java.lang.IllegalStateException- if this type is- UNKNOWN.
 
 
- 
 
-