Class UpdateEObjectEvent
- java.lang.Object
-
- com._1c.g5.v8.dt.form.mapping.core.event.AbstractEvent
-
- com._1c.g5.v8.dt.form.mapping.core.event.UpdateEObjectEvent
-
public class UpdateEObjectEvent extends AbstractEvent
The event for update value ofEObject
object.
-
-
Constructor Summary
Constructors Constructor Description UpdateEObjectEvent(Mapping<?,?> mapping, org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue)
UpdateEObjectEvent(Mapping<?,?> mapping, org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue, Object oldValue)
UpdateEObjectEvent(Mapping<?,?> mapping, org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue, Object oldValue, int index)
Creates a new event.UpdateEObjectEvent(org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue)
UpdateEObjectEvent(org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue, Object oldValue)
Creates a new event.UpdateEObjectEvent(org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue, Object oldValue, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.ecore.EStructuralFeature
getFeature()
Gets the feature of updating value.int
getIndex()
Gets the index of the updated value.Object
getNewValue()
Gets the value of updated object.Object
getOldValue()
org.eclipse.emf.ecore.EObject
getOwner()
Gets the updated object.-
Methods inherited from class com._1c.g5.v8.dt.form.mapping.core.event.AbstractEvent
getMapping
-
-
-
-
Constructor Detail
-
UpdateEObjectEvent
public UpdateEObjectEvent(Mapping<?,?> mapping, org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue, Object oldValue, int index)
Creates a new event. Events creates on mapping.- Parameters:
mapping
- - the mapping which creates this event.updatedFeature
- - the feature of updating value.owner
- - is updated object.newValue
- - the value of updated object.
-
UpdateEObjectEvent
public UpdateEObjectEvent(Mapping<?,?> mapping, org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue, Object oldValue)
-
UpdateEObjectEvent
public UpdateEObjectEvent(org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue, Object oldValue)
Creates a new event.- Parameters:
updatedFeature
- - the feature of updating value.owner
- - is updated object.newValue
- - the value of updated object.
-
UpdateEObjectEvent
public UpdateEObjectEvent(org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue, Object oldValue, int index)
-
UpdateEObjectEvent
public UpdateEObjectEvent(Mapping<?,?> mapping, org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue)
-
UpdateEObjectEvent
public UpdateEObjectEvent(org.eclipse.emf.ecore.EStructuralFeature updatedFeature, org.eclipse.emf.ecore.EObject owner, Object newValue)
-
-
Method Detail
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()
Gets the feature of updating value.- Returns:
- the feature of updating value.
-
getOwner
public org.eclipse.emf.ecore.EObject getOwner()
Gets the updated object.- Returns:
- the updated object.
-
getNewValue
public Object getNewValue()
Gets the value of updated object.- Returns:
- the value of updated object.
-
getOldValue
public Object getOldValue()
- Returns:
- the oldValue
-
getIndex
public int getIndex()
Gets the index of the updated value.- Returns:
- the index or
-1
if updated feature is single-valued.
-
-