Class AddEObjectEvent


  • public class AddEObjectEvent
    extends AbstractEvent
    The event for adding new EObject object.
    • Constructor Summary

      Constructors 
      Constructor Description
      AddEObjectEvent​(Mapping<?,​?> mapping, org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, int position, Object... values)
      Creates a new event for addition of a set of objects.
      AddEObjectEvent​(Mapping<?,​?> mapping, org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, Object value, int position)
      Creates a new event.
      AddEObjectEvent​(org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, int position, Object... values)
      Creates a new event for addition of a set of objects.
      AddEObjectEvent​(org.eclipse.emf.ecore.EStructuralFeature featureOfOwner, org.eclipse.emf.ecore.EObject owner, Object value, int position)
      Creates a new event.
    • Constructor Detail

      • AddEObjectEvent

        public AddEObjectEvent​(Mapping<?,​?> mapping,
                               org.eclipse.emf.ecore.EStructuralFeature featureOfOwner,
                               org.eclipse.emf.ecore.EObject owner,
                               Object value,
                               int position)
        Creates a new event. Events creates on mapping.
        Parameters:
        mapping - - the mapping which creates this event.
        featureOfOwner - - the feature of owner for adds new object.
        owner - - the owner in which adds new object.
        value - - the new object.
        position - - the position of a new object.
      • AddEObjectEvent

        public AddEObjectEvent​(org.eclipse.emf.ecore.EStructuralFeature featureOfOwner,
                               org.eclipse.emf.ecore.EObject owner,
                               Object value,
                               int position)
        Creates a new event.
        Parameters:
        featureOfOwner - - the feature of owner for adds new object.
        owner - - the owner in which adds new object.
        value - - the new object.
        position - - the position of a new object.
      • AddEObjectEvent

        public AddEObjectEvent​(org.eclipse.emf.ecore.EStructuralFeature featureOfOwner,
                               org.eclipse.emf.ecore.EObject owner,
                               int position,
                               Object... values)
        Creates a new event for addition of a set of objects.
        Parameters:
        featureOfOwner - - the feature of owner for adds new objects.
        owner - - the owner in which adds new objects.
        position - - the position of a new objects
        values - - the array of new objects.
      • AddEObjectEvent

        public AddEObjectEvent​(Mapping<?,​?> mapping,
                               org.eclipse.emf.ecore.EStructuralFeature featureOfOwner,
                               org.eclipse.emf.ecore.EObject owner,
                               int position,
                               Object... values)
        Creates a new event for addition of a set of objects. Events creates on mapping.
        Parameters:
        mapping - - the mapping which creates this event.
        featureOfOwner - - the feature of owner for adds new objects.
        owner - - the owner in which adds new objects.
        position - - the position of a new objects
        values - - the array of new objects.
    • Method Detail

      • getFeature

        public org.eclipse.emf.ecore.EStructuralFeature getFeature()
        Gets the feature of owner in which adding new object.
        Returns:
        the feature.
      • getOwner

        public org.eclipse.emf.ecore.EObject getOwner()
        Gets the owner in which adding new objects.
        Returns:
        the owner.
      • getValue

        public Object getValue()
        Gets the new objects.
        Returns:
        the new object.
      • getArrayValue

        public Object[] getArrayValue()
        Gets the new objects as array.
        Returns:
        the new objects.
      • getPosition

        public int getPosition()
        Gets the position of a new objects in which adding new object.
        Returns:
        the position.
      • isArray

        public boolean isArray()
        Check the new object is array.
        Returns:
        the true if new objects is array.