public class ECrossReferenceAdapter
extends java.lang.Object
EObject
, a Resource
, or a ResourceSet
.Modifier and Type | Class and Description |
---|---|
protected class |
ECrossReferenceAdapter.InverseCrossReferencer |
Modifier and Type | Field and Description |
---|---|
protected ECrossReferenceAdapter.InverseCrossReferencer |
inverseCrossReferencer |
protected boolean |
iterating
Indicates whether the adapter is currently being attached
iteratively . |
protected boolean |
settingTargets |
protected java.util.Map<EObject,Resource> |
unloadedEObjects |
protected java.util.Set<Resource> |
unloadedResources |
Constructor and Description |
---|
ECrossReferenceAdapter() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAdapter(Notifier notifier) |
protected ECrossReferenceAdapter.InverseCrossReferencer |
createInverseCrossReferencer() |
void |
dump() |
static ECrossReferenceAdapter |
getCrossReferenceAdapter(Notifier notifier)
Returns the first
ECrossReferenceAdapter in the notifier's adapter list ,
or null , if there isn't one. |
java.util.Collection<EStructuralFeature.Setting> |
getInverseReferences(EObject eObject) |
java.util.Collection<EStructuralFeature.Setting> |
getInverseReferences(EObject eObject,
boolean resolve) |
java.util.Collection<EStructuralFeature.Setting> |
getInverseReferences(EObject eObject,
EReference eReference,
boolean resolve) |
java.util.Collection<EStructuralFeature.Setting> |
getNonNavigableInverseReferences(EObject eObject) |
java.util.Collection<EStructuralFeature.Setting> |
getNonNavigableInverseReferences(EObject eObject,
boolean resolve) |
Notifier |
getTarget() |
protected void |
handleContainment(Notification notification)
Handles a containment change by adding and removing the adapter as appropriate.
|
protected void |
handleCrossReference(EReference reference,
Notification notification)
Handles a cross reference change by adding and removing the adapter as appropriate.
|
boolean |
isAdapterForType(java.lang.Object type) |
protected boolean |
isIncluded(EReference eReference) |
void |
notifyChanged(Notification notification)
Handles a notification by calling
selfAdapter . |
protected void |
removeAdapter(Notifier notifier) |
protected boolean |
resolve() |
protected void |
resolveAll(EObject eObject) |
protected void |
resolveProxy(Resource resource,
EObject eObject,
EObject proxy,
EStructuralFeature.Setting setting) |
protected void |
selfAdapt(Notification notification)
Handles a notification by calling
handleContainment
for any containment-based notification. |
void |
setTarget(Notifier target)
Handles installation of the adapter
by adding the adapter to each of the directly contained objects.
|
void |
unsetTarget(Notifier target)
Handles undoing the installation of the adapter
by removing the adapter to each of the directly contained objects.
|
protected boolean |
useRecursion()
Returns whether the process of attaching this adapter should be done recursively or iteratively;
the default is to return
true for recursion. |
protected java.util.Set<Resource> unloadedResources
protected ECrossReferenceAdapter.InverseCrossReferencer inverseCrossReferencer
protected boolean settingTargets
protected boolean iterating
iteratively
.useRecursion()
,
#setTarget(EObject)
,
#unsetTarget(EObject)
public static ECrossReferenceAdapter getCrossReferenceAdapter(Notifier notifier)
ECrossReferenceAdapter
in the notifier's adapter list
,
or null
, if there isn't one.notifier
- the object to search.protected boolean useRecursion()
true
for recursion.public java.util.Collection<EStructuralFeature.Setting> getNonNavigableInverseReferences(EObject eObject)
public java.util.Collection<EStructuralFeature.Setting> getNonNavigableInverseReferences(EObject eObject, boolean resolve)
public java.util.Collection<EStructuralFeature.Setting> getInverseReferences(EObject eObject)
public java.util.Collection<EStructuralFeature.Setting> getInverseReferences(EObject eObject, boolean resolve)
public java.util.Collection<EStructuralFeature.Setting> getInverseReferences(EObject eObject, EReference eReference, boolean resolve)
protected void resolveAll(EObject eObject)
protected void resolveProxy(Resource resource, EObject eObject, EObject proxy, EStructuralFeature.Setting setting)
protected boolean isIncluded(EReference eReference)
protected ECrossReferenceAdapter.InverseCrossReferencer createInverseCrossReferencer()
public void notifyChanged(Notification notification)
selfAdapter
.protected void selfAdapt(Notification notification)
handleContainment
for any containment-based notification.protected void handleContainment(Notification notification)
protected void handleCrossReference(EReference reference, Notification notification)
public void setTarget(Notifier target)
public void unsetTarget(Notifier target)
protected void addAdapter(Notifier notifier)
protected void removeAdapter(Notifier notifier)
public void dump()
public Notifier getTarget()
public boolean isAdapterForType(java.lang.Object type)
protected boolean resolve()
Copyright © 2022. Licensed under the Eclipse Public License v2.0. All rights reserved.
Submit a bug or feature