Class DeleteEObjectEvent


  • public class DeleteEObjectEvent
    extends AbstractEvent
    The event for deleting EObject object.
    • Constructor Detail

      • DeleteEObjectEvent

        public DeleteEObjectEvent​(Mapping<?,​?> mapping,
                                  org.eclipse.emf.ecore.EStructuralFeature featureOfparent,
                                  org.eclipse.emf.ecore.EObject parent,
                                  Object toDelete,
                                  int position)
        Creates a new event. Events creates on mapping.
        Parameters:
        mapping - - the mapping which creates this event.
        featureOfparent - - the feature of parent in which deleting object.
        parent - - the parent in which deleting object.
        toDelete - - the deleted object.
        position - - the position of deleted object.
      • DeleteEObjectEvent

        public DeleteEObjectEvent​(org.eclipse.emf.ecore.EStructuralFeature featureOfparent,
                                  org.eclipse.emf.ecore.EObject parent,
                                  Object toDelete,
                                  int position)
        Creates a new event. Without mapping.
        Parameters:
        featureOfparent - - the feature of parent in which deleting object.
        parent - - the parent in which deleting object.
        toDelete - - the deleted object.
        position - - the position of deleted object.
    • Method Detail

      • getFeature

        public org.eclipse.emf.ecore.EStructuralFeature getFeature()
        Gets the feature of parent in which deleting object.
        Returns:
        the feature.
      • getParent

        public org.eclipse.emf.ecore.EObject getParent()
        Gets the parent in which deleting object.
        Returns:
        the parent.
      • getDeletedObject

        public Object getDeletedObject()
        Gets the deleted object.
        Returns:
        the deleted object.
      • getPosition

        public int getPosition()
        Gets the position of deleted object.
        Returns:
        the position of deleted object.