Interface CDOModelElementRef<T extends EModelElement>

Type Parameters:
T - the EMF type of the referenced model element
All Superinterfaces:
Serializable
All Known Implementing Classes:
CDOClassifierRef, CDOFeatureRef, CDOPackageRef

public interface CDOModelElementRef<T extends EModelElement> extends Serializable
A symbolic reference to an EMF model element.

The reference contains only the symbolic identity of its model element. It does not retain a package registry and does not resolve anything as a side effect of construction, comparison, hashing, or serialization. Resolution is performed explicitly by resolve(EPackage.Registry).

Since:
4.29
Author:
Eike Stepper
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(EPackage.Registry packageRegistry)
    Resolves this reference against the supplied package registry.
  • Method Details

    • resolve

      T resolve(EPackage.Registry packageRegistry)
      Resolves this reference against the supplied package registry.
      Parameters:
      packageRegistry - the registry to use for explicit resolution
      Returns:
      the referenced model element, or null if the symbolic element is not present in the resolved package