|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.model.uml.AbstractUmlModelFactory
org.argouml.model.uml.ExtensionMechanismsFactoryImpl
Factory to create UML classes for the UML Foundation::ExtensionMechanisms package. TODO: Change visibility to package after reflection problem solved.
| Field Summary | |
private NSUMLModelImplementation |
nsmodel
The model implementation. |
| Constructor Summary | |
(package private) |
ExtensionMechanismsFactoryImpl(NSUMLModelImplementation implementation)
Don't allow instantiation. |
| Method Summary | |
Object |
buildStereotype(Object theModelElementObject,
Object theName,
Object theNamespaceObject)
Builds a stereotype for some kind of modelelement. |
Object |
buildStereotype(Object theModelElementObject,
String theName,
Object model,
Collection models)
Builds an initialized stereotype. |
Object |
buildStereotype(String text,
Object ns)
Builds an initialized stereotype. |
Object |
buildTaggedValue(String tag,
String value)
Build an initialized instance of a UML TaggedValue. |
Object |
copyStereotype(Object source,
Object ns)
Copies a stereotype. |
Object |
createStereotype()
Create an empty but initialized instance of a UML Stereotype. |
Object |
createTaggedValue()
Create an empty but initialized instance of a UML TaggedValue. |
(package private) void |
deleteStereotype(Object elem)
|
(package private) void |
deleteTaggedValue(Object elem)
|
private void |
doCopyStereotype(ru.novosoft.uml.foundation.extension_mechanisms.MStereotype source,
ru.novosoft.uml.foundation.extension_mechanisms.MStereotype target)
Used by the copy functions. |
| Methods inherited from class org.argouml.model.uml.AbstractUmlModelFactory |
addListenersToModelElement, initialize |
| 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 |
ExtensionMechanismsFactoryImpl(NSUMLModelImplementation implementation)
implementation - To get other helpers and factories.| Method Detail |
public Object createStereotype()
createStereotype in interface org.argouml.model.ExtensionMechanismsFactorypublic Object createTaggedValue()
createTaggedValue in interface org.argouml.model.ExtensionMechanismsFactory
public Object buildStereotype(Object theModelElementObject,
Object theName,
Object theNamespaceObject)
buildStereotype in interface org.argouml.model.ExtensionMechanismsFactorytheModelElementObject - a Model Element that the stereotype
will be applied to. The stereotype will
have its BaseClass set to an appropriate
value for this kind of Model Elements.theName - the name for the stereotypetheNamespaceObject - the namespace the stereotype will be
created within.
IllegalArgumentException - if either argument is null.
public Object buildStereotype(Object theModelElementObject,
String theName,
Object model,
Collection models)
buildStereotype in interface org.argouml.model.ExtensionMechanismsFactorytheModelElementObject - the baseclass for the new stereotypetheName - the name for the new stereotypemodel - the current model of interestmodels - all the models
public Object buildStereotype(String text,
Object ns)
buildStereotype in interface org.argouml.model.ExtensionMechanismsFactorytext - is the name of the stereotypens - namespace where the stereotype lives (is known)
public Object buildTaggedValue(String tag,
String value)
buildTaggedValue in interface org.argouml.model.ExtensionMechanismsFactorytag - is the tag name (a String).value - is the value (a String).
void deleteStereotype(Object elem)
elem - the stereotypevoid deleteTaggedValue(Object elem)
elem - the taggedvalue
public Object copyStereotype(Object source,
Object ns)
copyStereotype in interface org.argouml.model.ExtensionMechanismsFactorysource - is the stereotype to copy.ns - is the namespace to put the copy in.
private void doCopyStereotype(ru.novosoft.uml.foundation.extension_mechanisms.MStereotype source,
ru.novosoft.uml.foundation.extension_mechanisms.MStereotype target)
source - The stereotype to copy from.target - The object becoming a copy.
|
|||||||||||
| 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 |