Class StereotypeAPIHelper
java.lang.Object
de.uka.ipd.sdq.dsexplore.tools.stereotypeapi.StereotypeAPIHelper
Some utility functions for
StereotypeApplication
.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.modelversioning.emfprofileapplication.StereotypeApplication
getStereotype
(EObject base, String stereotype) getViaStereoTypeFrom
(Base base, Class<ElementType> target) Find all referenced Elements by type and basegetViaStereoTypeFrom
(Base base, Class<ElementType> target, String stereotype) Find all referenced Elements by type and base
-
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 typestereotype
- the name of the stereotype- Returns:
- a list of Elements found
-
getStereotype
-