Enum-Klasse CDOPackageUnit.Type

java.lang.Object
java.lang.Enum<CDOPackageUnit.Type>
org.eclipse.emf.cdo.common.model.CDOPackageUnit.Type
Alle implementierten Schnittstellen:
Serializable, Comparable<CDOPackageUnit.Type>, Constable
Umschließende Schnittstelle:
CDOPackageUnit

public static enum CDOPackageUnit.Type extends Enum<CDOPackageUnit.Type>
Describes the instances of classes of a package unit.
Autor:
Eike Stepper
  • Enum-Konstanten - Details

    • NATIVE

      public static final CDOPackageUnit.Type NATIVE
      The type of models that are generated specifically for the usage with CDO. Instances of classes of these models can be directly cast to CDOObject.
    • LEGACY

      public static final CDOPackageUnit.Type LEGACY
      The type of models that are not generated specifically for the usage with CDO. Instances of classes of these models can not be directly cast to CDOObject. The static utility method CDOUtil.getCDOObject(eObject) can be used to obtain a CDOObject.
    • DYNAMIC

      public static final CDOPackageUnit.Type DYNAMIC
      The type of models that are not generated at all but rather dynamically constructed at runtime. Instances of classes of these models can be directly cast to CDOObject, i.e. they're implicitly NATIVE.
    • UNKNOWN

      public static final CDOPackageUnit.Type UNKNOWN
      Used to indicate that the type of a model could not be determined. Refer to the package type registry on how to deal with this scenario.
  • Methodendetails

    • values

      public static CDOPackageUnit.Type[] values()
      Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
    • valueOf

      public static CDOPackageUnit.Type valueOf(String name)
      Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird
    • isGenerated

      public boolean isGenerated()
      Returns true if this type is either NATIVE or LEGACY, false otherwise.
    • checkNotUnknown

      public void checkNotUnknown() throws IllegalStateException
      Löst aus:
      IllegalStateException - if this type is UNKNOWN.