|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.model.uml.foundation.extensionmechanisms.ExtensionMechanismsHelper
Helper class for UML Foundation::ExtensionMechanisms Package. Current implementation is a placeholder.
Method Summary | |
---|---|
java.util.Collection |
getAllPossibleStereotypes(MModelElement m)
Returns all possible stereotypes for some modelelement. |
static ExtensionMechanismsHelper |
getHelper()
Singleton instance access method. |
java.lang.String |
getMetaModelName(MModelElement m)
|
MStereotype |
getStereotype(MNamespace ns,
MStereotype stereo)
Finds a stereotype in some namespace. |
MStereotype |
getStereotype(MStereotype stereo)
Searches the given stereotype in all models in the current project. |
java.util.Collection |
getStereotypes()
|
java.util.Collection |
getStereotypes(MNamespace ns)
Returns all stereotypes in some namespace |
boolean |
isStereotype(java.lang.Object object,
java.lang.String name,
java.lang.String base)
Tests if a stereotype is a stereotype with some name and base class. |
boolean |
isStereotypeInh(java.lang.Object object,
java.lang.String name,
java.lang.String base)
Tests if a stereotype is or inherits from a stereotype with some name and base class. |
protected boolean |
isValidStereoType(java.lang.Class clazz,
MStereotype stereo)
|
boolean |
isValidStereoType(java.lang.Object m,
MStereotype stereo)
Returns true if the given stereotype has a baseclass that equals the baseclass of the given modelelement or one of the superclasses of the given modelelement. |
void |
setStereoType(MModelElement m,
MStereotype stereo)
Sets the stereotype of some modelelement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ExtensionMechanismsHelper getHelper()
public java.util.Collection getStereotypes(MNamespace ns)
public MStereotype getStereotype(MNamespace ns, MStereotype stereo)
public MStereotype getStereotype(MStereotype stereo)
stereo
-
public java.lang.String getMetaModelName(MModelElement m)
public java.util.Collection getAllPossibleStereotypes(MModelElement m)
m
-
protected boolean isValidStereoType(java.lang.Class clazz, MStereotype stereo)
public boolean isValidStereoType(java.lang.Object m, MStereotype stereo)
m
- stereo
-
public java.util.Collection getStereotypes()
public void setStereoType(MModelElement m, MStereotype stereo)
m
- stereo
- public boolean isStereotype(java.lang.Object object, java.lang.String name, java.lang.String base)
object
- is the stereotype.name
- is the name of the stereotype.base
- is the base class of the stereotype.
public boolean isStereotypeInh(java.lang.Object object, java.lang.String name, java.lang.String base)
object
- is the stereotype.name
- is the name of the stereotype.base
- is the base class of the stereotype.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040229) | ArgoUML Project Home | ArgoUML Cookbook |