Interface EClassSelectionStrategy

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  EClassSelectionStrategy.Provider
      Specific Bazaar vendor interface for EClass selection strategies.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static EClassSelectionStrategy NULL
      An idempotent strategy (does not modify the selection).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Collection<org.eclipse.emf.ecore.EClass> collectEClasses​(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, java.util.Collection<org.eclipse.emf.ecore.EClass> eclasses)
      Update a collection of EClasses that are eligible for creation of a new object in the reference.
    • Method Detail

      • collectEClasses

        java.util.Collection<org.eclipse.emf.ecore.EClass> collectEClasses​(org.eclipse.emf.ecore.EObject owner,
                                                                           org.eclipse.emf.ecore.EReference reference,
                                                                           java.util.Collection<org.eclipse.emf.ecore.EClass> eclasses)
        Update a collection of EClasses that are eligible for creation of a new object in the reference.
        Parameters:
        owner - the proposed owner of a new reference
        reference - the owner's reference in which to add a new object
        eclasses - a mutable collection of classes. Implementors may add and remove elements in this collection as needed
        Returns:
        a mutable filtered collection of classes that can be passed into the next strategy. A suggested pattern is to modify the eclasses in place and return that collection