Class StereotypeAPIHelper


  • public final class StereotypeAPIHelper
    extends Object
    Some utility functions for StereotypeApplication.
    • Method Detail

      • getViaStereoTypeFrom

        public static <ElementType,​Base extends EObjectList<ElementType> getViaStereoTypeFrom​(Base base,
                                                                                                      Class<ElementType> target)
        Find all referenced Elements by type and base
        Parameters:
        base - the base (search location)
        target - the target type
        Returns:
        a list of Elements found
      • getViaStereoTypeFrom

        public static <ElementType,​Base extends EObjectList<ElementType> getViaStereoTypeFrom​(Base base,
                                                                                                      Class<ElementType> target,
                                                                                                      String stereotype)
        Find all referenced Elements by type and base
        Parameters:
        base - the base (search location)
        target - the target type
        stereotype - the name of the stereotype
        Returns:
        a list of Elements found
      • getStereotype

        public static org.modelversioning.emfprofileapplication.StereotypeApplication getStereotype​(EObject base,
                                                                                                    String stereotype)