|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.model.uml.ExtensionMechanismsHelperImpl
Helper class for UML Foundation::ExtensionMechanisms Package. Current implementation is a placeholder.
| Field Summary | |
private NSUMLModelImplementation |
nsmodel
The model implementation. |
| Constructor Summary | |
(package private) |
ExtensionMechanismsHelperImpl(NSUMLModelImplementation implementation)
Don't allow instantiation. |
| Method Summary | |
void |
addExtendedElement(Object handle,
Object extendedElement)
Add an extended element to a stereotype. |
Collection |
getAllPossibleStereotypes(Collection models,
Object modelElement)
Returns all possible stereotypes for some modelelement. |
protected String |
getMetaModelName(Class clazz)
|
String |
getMetaModelName(Object m)
|
Object |
getStereotype(Collection models,
Object stereo)
Searches for a stereotype just like the given stereotype in all models in the current project. |
Object |
getStereotype(Object ns,
Object stereo)
Finds a stereotype in some namespace, but not in its subnamespaces. |
Collection |
getStereotypes(Collection models)
Get all stereotypes from all Models in the list. |
Collection |
getStereotypes(Object ns)
Returns all stereotypes in a namespace, but not those in a subnamespace. |
boolean |
isStereotype(Object object,
String name,
String base)
Tests if a stereotype is a stereotype with some name and base class. |
boolean |
isStereotypeInh(Object object,
String name,
String base)
Tests if a stereotype is or inherits from a stereotype with some name and base class. |
private boolean |
isValidStereoType(Class clazz,
Object stereo)
This function answers the question: Can we apply the given stereotype to the given class? |
boolean |
isValidStereoType(Object theModelElement,
Object theStereotype)
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 |
setBaseClass(Object handle,
Object baseClass)
Set the baseclass of some stereotype. |
void |
setIcon(Object handle,
Object icon)
Set the icon for a stereotype. |
void |
setStereoType(Object modelElement,
Object stereotype)
Sets the stereotype of some modelelement. |
void |
setTag(Object handle,
Object tag)
Set the Tag of a TaggedValue. |
void |
setValueOfTag(Object handle,
String value)
Sets a value of some taggedValue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private NSUMLModelImplementation nsmodel
| Constructor Detail |
ExtensionMechanismsHelperImpl(NSUMLModelImplementation implementation)
implementation - To get other helpers and factories.| Method Detail |
public Collection getStereotypes(Object ns)
getStereotypes in interface org.argouml.model.ExtensionMechanismsHelperns - is the namespace.
public Object getStereotype(Object ns,
Object stereo)
getStereotype in interface org.argouml.model.ExtensionMechanismsHelperns - is the namespace.stereo - is the stereotype.
public Object getStereotype(Collection models,
Object stereo)
getStereotype in interface org.argouml.model.ExtensionMechanismsHelpermodels - a collection of modelsstereo - is the given stereotype
public String getMetaModelName(Object m)
getMetaModelName in interface org.argouml.model.ExtensionMechanismsHelperm - the ModelElement
protected String getMetaModelName(Class clazz)
clazz - the UML class
public Collection getAllPossibleStereotypes(Collection models,
Object modelElement)
getAllPossibleStereotypes in interface org.argouml.model.ExtensionMechanismsHelpermodelElement - is the model elementmodels - the models to search in
private boolean isValidStereoType(Class clazz,
Object stereo)
clazz - the class we want to apply the stereotype tostereo - the given stereotype
public boolean isValidStereoType(Object theModelElement,
Object theStereotype)
isValidStereoType in interface org.argouml.model.ExtensionMechanismsHelpertheModelElement - is the model elementtheStereotype - is the stereotype
public Collection getStereotypes(Collection models)
getStereotypes in interface org.argouml.model.ExtensionMechanismsHelpermodels - the models to search
ClassCastException - if an member in the models is not a Model.
public void setStereoType(Object modelElement,
Object stereotype)
setStereoType in interface org.argouml.model.ExtensionMechanismsHelpermodelElement - is the model elementstereotype - is the stereotype
public boolean isStereotype(Object object,
String name,
String base)
isStereotype in interface org.argouml.model.ExtensionMechanismsHelperobject - is the stereotype.name - is the name of the stereotype.base - is the base class of the stereotype.
public boolean isStereotypeInh(Object object,
String name,
String base)
isStereotypeInh in interface org.argouml.model.ExtensionMechanismsHelperobject - is the stereotype.name - is the name of the stereotype.base - is the base class of the stereotype.
public void addExtendedElement(Object handle,
Object extendedElement)
addExtendedElement in interface org.argouml.model.ExtensionMechanismsHelperhandle - StereotypeextendedElement - ExtensionPoint
public void setBaseClass(Object handle,
Object baseClass)
setBaseClass in interface org.argouml.model.ExtensionMechanismsHelperhandle - the stereotypebaseClass - the baseclass
public void setIcon(Object handle,
Object icon)
setIcon in interface org.argouml.model.ExtensionMechanismsHelperhandle - Stereotypeicon - String
public void setTag(Object handle,
Object tag)
setTag in interface org.argouml.model.ExtensionMechanismsHelperhandle - TaggedValuetag - String
public void setValueOfTag(Object handle,
String value)
setValueOfTag in interface org.argouml.model.ExtensionMechanismsHelperhandle - is the tagged valuevalue - is the value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |