org.eclipse.emf.cdo.util
Enum CDOPackageType

java.lang.Object
  extended by java.lang.Enum<CDOPackageType>
      extended by org.eclipse.emf.cdo.util.CDOPackageType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CDOPackageType>

public enum CDOPackageType
extends java.lang.Enum<CDOPackageType>


Enum Constant Summary
CONVERTED
          The type of EPackages that have been normally generated for EMF and later converted to CDO.
LEGACY
          The type of EPackages that have been normally generated for EMF.
NATIVE
          The type of EPackages that have been dedicatedly generated for CDO.
 
Method Summary
static CDOPackageType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CDOPackageType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NATIVE

public static final CDOPackageType NATIVE
The type of EPackages that have been dedicatedly generated for CDO. Instances of EClasses of these packages are represented by CDOObjectImpl to the CDOStateMachine.


LEGACY

public static final CDOPackageType LEGACY
The type of EPackages that have been normally generated for EMF. Instances of EClasses of these packages are represented by CDOAdapterImpl to the CDOStateMachine.


CONVERTED

public static final CDOPackageType CONVERTED
The type of EPackages that have been normally generated for EMF and later converted to CDO. Instances of EClasses of these packages are represented by CDOCallbackImpl to the CDOStateMachine.

Method Detail

values

public static final CDOPackageType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CDOPackageType c : CDOPackageType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static CDOPackageType 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

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.