|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProfileProvider
Provides profile capability to a metamodel.
This interface is used to determine the stereotypes of a specific model element. These stereotypes are used to map a model element to a metatype defined in a profile.
Each metamodel may provide its own implementation of this interface.
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.
Clients may implement this interface.
| Method Summary | |
|---|---|
String[] |
getStereotypeNames(MDWObject object)
Determines the stereotype names attached to a model element. |
| Method Detail |
|---|
String[] getStereotypeNames(MDWObject 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||