public static enum CDOPackageUnit.Type extends Enum<CDOPackageUnit.Type>
classes
of a package unit
.Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
checkNotUnknown() |
boolean |
isGenerated()
|
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.
|
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.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 nameNullPointerException
- if the argument is nullpublic boolean isGenerated()
public void checkNotUnknown() throws IllegalStateException
IllegalStateException
- if this type is UNKNOWN
.Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html