|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.model.uml.foundation.extensionmechanisms.ExtensionMechanismsHelper
Helper class for UML Foundation::ExtensionMechanisms Package. Current implementation is a placeholder.
Field Summary | |
private static ExtensionMechanismsHelper |
SINGLETON
Singleton instance. |
Constructor Summary | |
private |
ExtensionMechanismsHelper()
Don't allow instantiation. |
Method Summary | |
java.util.Collection |
getAllPossibleStereotypes(java.lang.Object modelElement)
Returns all possible stereotypes for some modelelement. |
static ExtensionMechanismsHelper |
getHelper()
Singleton instance access method. |
protected java.lang.String |
getMetaModelName(java.lang.Class clazz)
|
java.lang.String |
getMetaModelName(ru.novosoft.uml.foundation.core.MModelElement m)
|
ru.novosoft.uml.foundation.extension_mechanisms.MStereotype |
getStereotype(ru.novosoft.uml.foundation.core.MNamespace ns,
ru.novosoft.uml.foundation.extension_mechanisms.MStereotype stereo)
Finds a stereotype in some namespace. |
ru.novosoft.uml.foundation.extension_mechanisms.MStereotype |
getStereotype(ru.novosoft.uml.foundation.extension_mechanisms.MStereotype stereo)
Searches the given stereotype in all models in the current project. |
java.util.Collection |
getStereotypes()
|
java.util.Collection |
getStereotypes(ru.novosoft.uml.model_management.MModel ns)
Returns all stereotypes in some model. |
java.util.Collection |
getStereotypes(ru.novosoft.uml.foundation.core.MNamespace ns)
Returns all stereotypes in a 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,
java.lang.Object stereo)
|
boolean |
isValidStereoType(java.lang.Object m,
java.lang.Object 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(java.lang.Object modelElement,
java.lang.Object stereotype)
Sets the stereotype of some modelelement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static ExtensionMechanismsHelper SINGLETON
Constructor Detail |
private ExtensionMechanismsHelper()
Method Detail |
public static ExtensionMechanismsHelper getHelper()
public java.util.Collection getStereotypes(ru.novosoft.uml.foundation.core.MNamespace ns)
ns
- is the namespace.
public java.util.Collection getStereotypes(ru.novosoft.uml.model_management.MModel ns)
ns
- is the model.
public ru.novosoft.uml.foundation.extension_mechanisms.MStereotype getStereotype(ru.novosoft.uml.foundation.core.MNamespace ns, ru.novosoft.uml.foundation.extension_mechanisms.MStereotype stereo)
ns
- is the namespace.stereo
- is the stereotype.
public ru.novosoft.uml.foundation.extension_mechanisms.MStereotype getStereotype(ru.novosoft.uml.foundation.extension_mechanisms.MStereotype stereo)
stereo
- is the given stereotype
public java.lang.String getMetaModelName(ru.novosoft.uml.foundation.core.MModelElement m)
protected java.lang.String getMetaModelName(java.lang.Class clazz)
public java.util.Collection getAllPossibleStereotypes(java.lang.Object modelElement)
modelElement
- is the model element
protected boolean isValidStereoType(java.lang.Class clazz, java.lang.Object stereo)
public boolean isValidStereoType(java.lang.Object m, java.lang.Object stereo)
m
- is the model elementstereo
- is the stereotype
public java.util.Collection getStereotypes()
public void setStereoType(java.lang.Object modelElement, java.lang.Object stereotype)
modelElement
- is the model elementstereotype
- is the stereotypepublic 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-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |