Class UpdateEObjectEvent


  • public class UpdateEObjectEvent
    extends AbstractEvent
    The event for update value of EObject object.
    • 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.