public interface ProfileProvider2 extends ProfileProvider
EObject
,
without requiring it to be a MDWObject
instance.
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
String[] |
getStereotypeNames(EObject object)
Determines the stereotype names attached to a model element.
|
getStereotypeNames
String[] getStereotypeNames(EObject object)
The concept of stereotype name is neutral here: UML metamodel implementation will consider the stereotype feature, but a metamodel
implementation may map this concept to any arbitrary feature, as long as the feature can be represented with a String
value.
The implementation should be fast and lightweight, as this method will be called a lot of time (each time a method or a script is called on a model element).
If no stereotype is attached to the model element, then it is recommended to return null
instead of an empty array, for
performance consideration (avoids to create unused empty arrays).
object
- the model element we want to determine the stereotypes.null
if no stereotype is attached to the model element.