Class LightweightEObjectObserverAdapter
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.base.api.LightweightEObjectObserverAdapter
-
- All Implemented Interfaces:
LightweightEObjectObserver
public abstract class LightweightEObjectObserverAdapter extends java.lang.Object implements LightweightEObjectObserver
Adapter class for lightweight observer which filters feature updates to a selected set of features.
-
-
Constructor Summary
Constructors Constructor Description LightweightEObjectObserverAdapter(java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedFeatures)
Creates a new adapter with the given set of observed features.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
notifyFeatureChanged(org.eclipse.emf.ecore.EObject host, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.common.notify.Notification notification)
void
observeAdditionalFeature(org.eclipse.emf.ecore.EStructuralFeature observedFeature)
void
observeAdditionalFeatures(java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedFeatures)
abstract void
observedFeatureUpdate(org.eclipse.emf.ecore.EObject host, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.common.notify.Notification notification)
This method is called when the feature that changed is among the observed features of the adapter.void
removeObservedFeature(org.eclipse.emf.ecore.EStructuralFeature observedFeature)
void
removeObservedFeatures(java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedFeatures)
-
-
-
Method Detail
-
observeAdditionalFeature
public void observeAdditionalFeature(org.eclipse.emf.ecore.EStructuralFeature observedFeature)
-
observeAdditionalFeatures
public void observeAdditionalFeatures(java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedFeatures)
-
removeObservedFeature
public void removeObservedFeature(org.eclipse.emf.ecore.EStructuralFeature observedFeature)
-
removeObservedFeatures
public void removeObservedFeatures(java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature> observedFeatures)
-
notifyFeatureChanged
public void notifyFeatureChanged(org.eclipse.emf.ecore.EObject host, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.common.notify.Notification notification)
- Specified by:
notifyFeatureChanged
in interfaceLightweightEObjectObserver
-
observedFeatureUpdate
public abstract void observedFeatureUpdate(org.eclipse.emf.ecore.EObject host, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.common.notify.Notification notification)
This method is called when the feature that changed is among the observed features of the adapter.- Parameters:
host
-feature
-notification
-
-
-