Package org.eclipse.emf.cdo.util
Class CDOCrossReferenceAdapter
- java.lang.Object
-
- org.eclipse.emf.ecore.util.ECrossReferenceAdapter
-
- org.eclipse.emf.cdo.util.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
AnECrossReferenceAdapter
that does instanceof checks ofNotifier
instances in the orderResource
,EObject
, andResourceSet
.Background: For performance reasons (assuming that there are typically more
EObject
instances thanResource
instances) EMF does instanceof checks ofNotifier
instances in the orderEObject
,Resource
, andResourceSet
. That is problematic with CDOResources because they implement bothResource
andEObject
.- Since:
- 4.6
- Author:
- Eike Stepper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
CDOCrossReferenceAdapter.CDOInverseCrossReferencer
AnInverseCrossReferencer
with anCDOCrossReferenceAdapter.CDOInverseCrossReferencer.addProxy(EObject, EObject)
method that is visible toCDOCrossReferenceAdapter
.
-
Constructor Summary
Constructors Constructor Description CDOCrossReferenceAdapter()
-
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
-
-
-
-
Method Detail
-
setTarget
public void setTarget(org.eclipse.emf.common.notify.Notifier target)
- Specified by:
setTarget
in interfaceorg.eclipse.emf.common.notify.Adapter
- Overrides:
setTarget
in classorg.eclipse.emf.ecore.util.ECrossReferenceAdapter
-
unsetTarget
public void unsetTarget(org.eclipse.emf.common.notify.Notifier target)
- Specified by:
unsetTarget
in interfaceorg.eclipse.emf.common.notify.Adapter.Internal
- Overrides:
unsetTarget
in classorg.eclipse.emf.ecore.util.ECrossReferenceAdapter
-
selfAdapt
protected void selfAdapt(org.eclipse.emf.common.notify.Notification notification)
- Overrides:
selfAdapt
in classorg.eclipse.emf.ecore.util.ECrossReferenceAdapter
-
createInverseCrossReferencer
protected CDOCrossReferenceAdapter.CDOInverseCrossReferencer createInverseCrossReferencer()
- Overrides:
createInverseCrossReferencer
in classorg.eclipse.emf.ecore.util.ECrossReferenceAdapter
-
getInverseCrossReferencer
protected CDOCrossReferenceAdapter.CDOInverseCrossReferencer getInverseCrossReferencer()
-
-