Interface ReferenceStrategy

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  ReferenceStrategy.Provider
      Specific Bazaar vendor interface for reference strategies.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean addElementsToReference​(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, java.util.Set<? extends org.eclipse.emf.ecore.EObject> objects)
      Add a set of new objects to a reference.
    • Field Detail

      • DEFAULT

        static final ReferenceStrategy DEFAULT
        The default strategy. Just executes a simple command to add the reference.
    • Method Detail

      • addElementsToReference

        boolean addElementsToReference​(org.eclipse.emf.ecore.EObject owner,
                                       org.eclipse.emf.ecore.EReference reference,
                                       java.util.Set<? extends org.eclipse.emf.ecore.EObject> objects)
        Add a set of new objects to a reference.
        Parameters:
        owner - an existing object to which the given objects are to be added in the reference
        reference - the reference of the owner to which the objects are to be added
        objects - the new objects to be added to the reference of the owner
        Returns:
        true if the objects were added to the reference by this strategy; false, otherwise