Class CDOCrossReferenceAdapter

  • All Implemented Interfaces:
    org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal

    public final class CDOCrossReferenceAdapter
    extends org.eclipse.emf.ecore.util.ECrossReferenceAdapter
    An ECrossReferenceAdapter that does instanceof checks of Notifier instances in the order Resource, EObject, and ResourceSet.

    Background: For performance reasons (assuming that there are typically more EObject instances than Resource instances) EMF does instanceof checks of Notifier instances in the order EObject, Resource, and ResourceSet. That is problematic with CDOResources because they implement both Resource and EObject.

    Since:
    4.6
    Author:
    Eike Stepper
    • Field Summary

      • Fields inherited from class org.eclipse.emf.ecore.util.ECrossReferenceAdapter

        inverseCrossReferencer, iterating, settingTargets, unloadedEObjects, unloadedResources
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected CDOCrossReferenceAdapter.CDOInverseCrossReferencer createInverseCrossReferencer()  
      protected CDOCrossReferenceAdapter.CDOInverseCrossReferencer getInverseCrossReferencer()  
      protected void selfAdapt​(org.eclipse.emf.common.notify.Notification notification)  
      void setTarget​(org.eclipse.emf.common.notify.Notifier target)  
      void unsetTarget​(org.eclipse.emf.common.notify.Notifier target)  
      • Methods inherited from class org.eclipse.emf.ecore.util.ECrossReferenceAdapter

        addAdapter, dump, getCrossReferenceAdapter, getInverseReferences, getInverseReferences, getInverseReferences, getNonNavigableInverseReferences, getNonNavigableInverseReferences, getTarget, handleContainment, handleCrossReference, isAdapterForType, isIncluded, notifyChanged, removeAdapter, resolve, resolveAll, resolveProxy, setTarget, setTarget, setTarget, unsetTarget, unsetTarget, unsetTarget, useRecursion
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CDOCrossReferenceAdapter

        public CDOCrossReferenceAdapter()
    • Method Detail

      • setTarget

        public void setTarget​(org.eclipse.emf.common.notify.Notifier target)
        Specified by:
        setTarget in interface org.eclipse.emf.common.notify.Adapter
        Overrides:
        setTarget in class org.eclipse.emf.ecore.util.ECrossReferenceAdapter
      • unsetTarget

        public void unsetTarget​(org.eclipse.emf.common.notify.Notifier target)
        Specified by:
        unsetTarget in interface org.eclipse.emf.common.notify.Adapter.Internal
        Overrides:
        unsetTarget in class org.eclipse.emf.ecore.util.ECrossReferenceAdapter
      • selfAdapt

        protected void selfAdapt​(org.eclipse.emf.common.notify.Notification notification)
        Overrides:
        selfAdapt in class org.eclipse.emf.ecore.util.ECrossReferenceAdapter