org.argouml.model
Interface ExtensionMechanismsFactory

All Superinterfaces:
Factory

public interface ExtensionMechanismsFactory
extends Factory

The interface for the factory for ExstensionMechanisms.


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 buildTagDefinition(String name, Object stereotype, Object ns)
          Build an initialized instance of a TagDefinition.
 Object buildTaggedValue(String tag, String value)
          Build an initialized instance of a UML TaggedValue.
 Object copyStereotype(Object source, Object ns)
          Copies a stereotype.
 Object copyTagDefinition(Object aTd, Object aNs)
          Copy a TagDefinition into the given namespace or stereotype.
 Object createStereotype()
          Create an empty Stereotype element.
 Object createTagDefinition()
          Create a TagDefinition.
 Object createTaggedValue()
          Create an empty but initialized instance of a UML TaggedValue.
 

Method Detail

createTaggedValue

public Object createTaggedValue()
Create an empty but initialized instance of a UML TaggedValue.

Returns:
an initialized UML TaggedValue instance.

buildStereotype

public Object buildStereotype(Object theModelElementObject,
                              Object theName,
                              Object theNamespaceObject)
Builds a stereotype for some kind of modelelement.

Parameters:
theModelElementObject - 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 stereotype
theNamespaceObject - the namespace the stereotype will be created within.
Returns:
the resulting stereotype object
Throws:
IllegalArgumentException - if either argument is null.

buildStereotype

public Object buildStereotype(Object theModelElementObject,
                              String theName,
                              Object model,
                              Collection models)
Builds an initialized stereotype.

Parameters:
theModelElementObject - the baseclass for the new stereotype
theName - the name for the new stereotype
model - the current model of interest
models - all the models
Returns:
the new stereotype

buildStereotype

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

Parameters:
text - is the name of the stereotype
ns - namespace where the stereotype lives (is known)
Returns:
an initialized stereotype.

buildTaggedValue

public Object buildTaggedValue(String tag,
                               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.

copyStereotype

public Object copyStereotype(Object source,
                             Object 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

buildTagDefinition

public Object buildTagDefinition(String name,
                                 Object stereotype,
                                 Object ns)
Build an initialized instance of a TagDefinition.

Parameters:
name - is the name of the TagDefinition
stereotype - is the optional stereotype owning the TagDefinition
ns - is the namespace to put the TagDefinition.
Returns:
a newly created TagDefinition.

createTagDefinition

public Object createTagDefinition()
Create a TagDefinition.

Returns:
a TagDefinition

createStereotype

public Object createStereotype()
Create an empty Stereotype element.

Returns:
a Stereotype

copyTagDefinition

public Object copyTagDefinition(Object aTd,
                                Object aNs)
Copy a TagDefinition into the given namespace or stereotype.

Parameters:
aTd - The TagDefinition to copy
aNs - A Namespace or a stereotype into which place the copy
Returns:
A copy of the tagdefinition


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook