public class DerivedAttributeAdapter
extends org.eclipse.emf.common.notify.impl.AdapterImpl
EStructuralFeatures
. This Adapter will make sure that correct SET/UNSET notifications are issued when a feature from
which the derived feature is derived from changes.Constructor and Description |
---|
DerivedAttributeAdapter(org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EStructuralFeature derivedFeature) |
Modifier and Type | Method and Description |
---|---|
void |
addLocalDependency(org.eclipse.emf.ecore.EStructuralFeature localFeature)
Use this method to indicate that the given feature influences the derived value and is owned by the same
EObject as the derived feature. |
void |
addNavigatedDependency(org.eclipse.emf.ecore.EStructuralFeature dependentFeature,
org.eclipse.emf.ecore.EReference... navigationFeatures)
Use this method to indicate the given given feature path influences the derived value.
|
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification) |
public DerivedAttributeAdapter(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature derivedFeature)
source
- the owner of the derived featurederivedFeature
- the derived featurepublic void addLocalDependency(org.eclipse.emf.ecore.EStructuralFeature localFeature)
EObject
as the derived feature.localFeature
- the local feature.public void addNavigatedDependency(org.eclipse.emf.ecore.EStructuralFeature dependentFeature, org.eclipse.emf.ecore.EReference... navigationFeatures)
dependentFeature
- the last feature on the pathnavigationFeatures
- the reference path. This must NOT be emptypublic void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
notifyChanged
in class org.eclipse.emf.common.notify.impl.AdapterImpl
Copyright © 2019. All rights reserved.