org.argouml.model.uml.foundation.extensionmechanisms
Class ExtensionMechanismsFactory

java.lang.Object
  extended byorg.argouml.model.uml.AbstractUmlModelFactory
      extended byorg.argouml.model.uml.foundation.extensionmechanisms.ExtensionMechanismsFactory

public class ExtensionMechanismsFactory
extends AbstractUmlModelFactory

Factory to create UML classes for the UML Foundation::ExtensionMechanisms package.

Since:
ARGO0.11.2

Field Summary
private static ExtensionMechanismsFactory SINGLETON
          Singleton instance.
 
Fields inherited from class org.argouml.model.uml.AbstractUmlModelFactory
 
Constructor Summary
private ExtensionMechanismsFactory()
          Don't allow instantiation
 
Method Summary
 ru.novosoft.uml.foundation.extension_mechanisms.MStereotype buildStereotype(java.lang.Object mObj, java.lang.Object textObj, java.lang.Object nsObj)
          Builds a stereotype for some kind of modelelement.
 ru.novosoft.uml.foundation.extension_mechanisms.MStereotype buildStereotype(java.lang.Object modelElement, java.lang.String text)
           
 java.lang.Object buildStereotype(java.lang.String text, java.lang.Object ns)
          Builds an initialized stereotype.
 ru.novosoft.uml.foundation.extension_mechanisms.MTaggedValue buildTaggedValue(java.lang.String tag, java.lang.String value)
          Build an initialized instance of a UML TaggedValue.
 ru.novosoft.uml.foundation.extension_mechanisms.MStereotype copyStereotype(ru.novosoft.uml.foundation.extension_mechanisms.MStereotype source, ru.novosoft.uml.foundation.core.MNamespace ns)
          Copies a stereotype.
 java.lang.Object createStereotype()
          Create an empty but initialized instance of a UML Stereotype.
 ru.novosoft.uml.foundation.extension_mechanisms.MTaggedValue createTaggedValue()
          Create an empty but initialized instance of a UML TaggedValue.
 void deleteStereotype(ru.novosoft.uml.foundation.extension_mechanisms.MStereotype elem)
           
 void deleteTaggedValue(ru.novosoft.uml.foundation.extension_mechanisms.MTaggedValue elem)
           
 void doCopyStereotype(ru.novosoft.uml.foundation.extension_mechanisms.MStereotype source, ru.novosoft.uml.foundation.extension_mechanisms.MStereotype target)
          Deprecated. by Linus Tolke as of 0.15.4. Will be private.
static ExtensionMechanismsFactory getFactory()
          Singleton instance access method.
 
Methods inherited from class org.argouml.model.uml.AbstractUmlModelFactory
addListenersToModelElement, initialize, isGuiEnabled, setGuiEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

private static ExtensionMechanismsFactory SINGLETON
Singleton instance.

Constructor Detail

ExtensionMechanismsFactory

private ExtensionMechanismsFactory()
Don't allow instantiation

Method Detail

getFactory

public static ExtensionMechanismsFactory getFactory()
Singleton instance access method.

Returns:
the factory instance.

createStereotype

public java.lang.Object createStereotype()
Create an empty but initialized instance of a UML Stereotype.

Returns:
an initialized UML Stereotype instance.

createTaggedValue

public ru.novosoft.uml.foundation.extension_mechanisms.MTaggedValue createTaggedValue()
Create an empty but initialized instance of a UML TaggedValue.

Returns:
an initialized UML TaggedValue instance.

buildStereotype

public ru.novosoft.uml.foundation.extension_mechanisms.MStereotype buildStereotype(java.lang.Object mObj,
                                                                                   java.lang.Object textObj,
                                                                                   java.lang.Object nsObj)
Builds a stereotype for some kind of modelelement.


buildStereotype

public java.lang.Object buildStereotype(java.lang.String text,
                                        java.lang.Object ns)
Builds an initialized stereotype.

Parameters:
text - is the name of the stereotype
ns - namespace
Returns:
an initialized stereotype.

buildStereotype

public ru.novosoft.uml.foundation.extension_mechanisms.MStereotype buildStereotype(java.lang.Object modelElement,
                                                                                   java.lang.String text)

buildTaggedValue

public ru.novosoft.uml.foundation.extension_mechanisms.MTaggedValue buildTaggedValue(java.lang.String tag,
                                                                                     java.lang.String value)
Build an initialized instance of a UML TaggedValue.

Parameters:
tag - is the tag name (a String).
value - is the value (a String).
Returns:
an initialized UML TaggedValue instance.

deleteStereotype

public void deleteStereotype(ru.novosoft.uml.foundation.extension_mechanisms.MStereotype elem)

deleteTaggedValue

public void deleteTaggedValue(ru.novosoft.uml.foundation.extension_mechanisms.MTaggedValue elem)

copyStereotype

public ru.novosoft.uml.foundation.extension_mechanisms.MStereotype copyStereotype(ru.novosoft.uml.foundation.extension_mechanisms.MStereotype source,
                                                                                  ru.novosoft.uml.foundation.core.MNamespace ns)
Copies a stereotype.

Parameters:
source - is the stereotype to copy.
ns - is the namespace to put the copy in.
Returns:
a newly created stereotype

doCopyStereotype

public void doCopyStereotype(ru.novosoft.uml.foundation.extension_mechanisms.MStereotype source,
                             ru.novosoft.uml.foundation.extension_mechanisms.MStereotype target)
Deprecated. by Linus Tolke as of 0.15.4. Will be private.

Used by the copy functions. Do not call this function directly. TODO: Why is this public? I think it shouldn't be.



ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook