Class StereotypeAPIHelper

java.lang.Object
de.uka.ipd.sdq.dsexplore.tools.stereotypeapi.StereotypeAPIHelper

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

    • getViaStereoTypeFrom

      public static <ElementType, Base extends EObject> List<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 EObject> List<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)