|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.model.AbstractExtensionMechanismsHelperDecorator
public abstract class AbstractExtensionMechanismsHelperDecorator
An abstract Decorator for the ExtensionMechanismsHelper.
| Constructor Summary | |
|---|---|
protected |
AbstractExtensionMechanismsHelperDecorator(ExtensionMechanismsHelper component)
|
| Method Summary | |
|---|---|
void |
addBaseClass(java.lang.Object handle,
java.lang.Object baseClass)
Add a baseclass to some stereotype. |
void |
addCopyStereotype(java.lang.Object modelElement,
java.lang.Object stereotype)
Sets the stereotype of some modelelement. |
void |
addExtendedElement(java.lang.Object handle,
java.lang.Object extendedElement)
Add an extended element to a stereotype. |
void |
addTaggedValue(java.lang.Object handle,
java.lang.Object taggedValue)
Add a tagged value. |
void |
applyProfile(java.lang.Object handle,
java.lang.Object profile)
Apply a profile to a model or another profile. |
java.util.Collection |
getAllPossibleStereotypes(java.util.Collection models,
java.lang.Object modelElement)
Returns all possible stereotypes for some modelelement. |
protected ExtensionMechanismsHelper |
getComponent()
The component we are decorating. |
java.lang.String |
getMetaModelName(java.lang.Object m)
|
java.lang.Object |
getStereotype(java.util.Collection models,
java.lang.Object stereo)
Searches for a stereotype just like the given stereotype in all given models (and their sub-namespaces). |
java.lang.Object |
getStereotype(java.lang.Object ns,
java.lang.Object stereo)
Finds a stereotype in a given namespace, and all those in any sub-namespace of the given namespace. |
java.util.Collection |
getStereotypes(java.util.Collection models)
Get all stereotypes from all Models in the list. |
java.util.Collection |
getStereotypes(java.lang.Object ns)
Returns all stereotypes in a given namespace, and all those in any sub-namespace of the given namespace. |
boolean |
hasStereotype(java.lang.Object handle,
java.lang.String name)
Returns true if the given ModelElement has a Stereotype
with the given name. |
boolean |
isStereotype(java.lang.Object object,
java.lang.String name,
java.lang.String base)
Tests if a stereotype has a given name and given 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. |
boolean |
isValidStereotype(java.lang.Object theModelElement,
java.lang.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. |
java.lang.Object |
makeProfileApplicable(java.lang.Object handle)
Make a profile applicable. |
void |
removeBaseClass(java.lang.Object handle,
java.lang.Object baseClass)
Remove baseclass from some stereotype. |
void |
removeTaggedValue(java.lang.Object handle,
java.lang.Object taggedValue)
Remove a tagged value. |
void |
setDataValues(java.lang.Object handle,
java.lang.String[] values)
Sets the dataValues of the given TaggedValue. |
void |
setIcon(java.lang.Object handle,
java.lang.Object icon)
Set the icon for a stereotype. |
void |
setTaggedValue(java.lang.Object handle,
java.util.Collection taggedValues)
Set the list of tagged values for a model element. |
void |
setTagType(java.lang.Object handle,
java.lang.String tagType)
Set the tagType of a TaggedDefinition. |
void |
setType(java.lang.Object handle,
java.lang.Object type)
Set the type of a taggedvalue. |
void |
setValueOfTag(java.lang.Object handle,
java.lang.String value)
Deprecated. |
void |
unapplyProfile(java.lang.Object handle,
java.lang.Object profile)
Unapply a profile to a model or another profile. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractExtensionMechanismsHelperDecorator(ExtensionMechanismsHelper component)
component - The component to decorate.| Method Detail |
|---|
protected ExtensionMechanismsHelper getComponent()
public java.util.Collection getStereotypes(java.lang.Object ns)
ExtensionMechanismsHelper
getStereotypes in interface ExtensionMechanismsHelperns - is the namespace.
public java.lang.Object getStereotype(java.lang.Object ns,
java.lang.Object stereo)
ExtensionMechanismsHelperTODO: What if stereo.getName() or stereo.getBaseClass() is null? Then you know immediately that none will be found, but is that the correct answer? Currently, null is returned in these cases.
TODO: This function should not take a stereotype object as parameter, but a name and a baseclass.
TODO: Currently only works for stereotypes with only one baseclass.
TODO: Currently only works for stereotypes where the baseclass is equal to the given one - inheritance does not work.
getStereotype in interface ExtensionMechanismsHelperns - is the namespace.stereo - is the stereotype.
public java.lang.Object getStereotype(java.util.Collection models,
java.lang.Object stereo)
ExtensionMechanismsHelperTODO: Currently only works for stereotypes with only one baseclass.
TODO: Should it only search for stereotypes owned by the Model object?
getStereotype in interface ExtensionMechanismsHelpermodels - a collection of modelsstereo - is the given stereotype
public java.lang.String getMetaModelName(java.lang.Object m)
getMetaModelName in interface ExtensionMechanismsHelperm - the ModelElement
public java.util.Collection getAllPossibleStereotypes(java.util.Collection models,
java.lang.Object modelElement)
ExtensionMechanismsHelper
getAllPossibleStereotypes in interface ExtensionMechanismsHelpermodels - the models to search inmodelElement - is the model element
public boolean isValidStereotype(java.lang.Object theModelElement,
java.lang.Object theStereotype)
ExtensionMechanismsHelpertrue if the given stereotype has a baseclass that
equals the baseclass of the given ModelElement or one of the superclasses
of the given ModelElement.
isValidStereotype in interface ExtensionMechanismsHelpertheModelElement - is the model elementtheStereotype - is the stereotype
public java.util.Collection getStereotypes(java.util.Collection models)
ExtensionMechanismsHelperFinds also all stereotypes owned by any sub-namespaces of the Model.
getStereotypes in interface ExtensionMechanismsHelpermodels - the models to search
public void addCopyStereotype(java.lang.Object modelElement,
java.lang.Object stereotype)
ExtensionMechanismsHelper
addCopyStereotype in interface ExtensionMechanismsHelpermodelElement - is the model elementstereotype - is the stereotype
public boolean isStereotype(java.lang.Object object,
java.lang.String name,
java.lang.String base)
ExtensionMechanismsHelper
isStereotype in interface ExtensionMechanismsHelperobject - is the stereotype.name - is the name of the stereotype.base - is a string representing the base class of the stereotype.
public boolean isStereotypeInh(java.lang.Object object,
java.lang.String name,
java.lang.String base)
ExtensionMechanismsHelper
isStereotypeInh in interface ExtensionMechanismsHelperobject - is the stereotype.name - is the name of the stereotype.base - is the base class of the stereotype.
public void addExtendedElement(java.lang.Object handle,
java.lang.Object extendedElement)
ExtensionMechanismsHelper
addExtendedElement in interface ExtensionMechanismsHelperhandle - StereotypeextendedElement - ExtensionPoint
public void addBaseClass(java.lang.Object handle,
java.lang.Object baseClass)
ExtensionMechanismsHelper
addBaseClass in interface ExtensionMechanismsHelperhandle - the stereotypebaseClass - the baseclass to add
public void removeBaseClass(java.lang.Object handle,
java.lang.Object baseClass)
ExtensionMechanismsHelper
removeBaseClass in interface ExtensionMechanismsHelperhandle - the stereotypebaseClass - the baseclass to remove
public void setIcon(java.lang.Object handle,
java.lang.Object icon)
ExtensionMechanismsHelper
setIcon in interface ExtensionMechanismsHelperhandle - Stereotypeicon - String
public void setTagType(java.lang.Object handle,
java.lang.String tagType)
ExtensionMechanismsHelper
setTagType in interface ExtensionMechanismsHelperhandle - the taggedValuetagType - A string containing the name of the type for values that
may be assigned to this tag. This can either be the name
of a datatype (e.g. "String", "Integer" or "Boolean") or
the name of a metaclass for more complex types of tagged
values.
public void setType(java.lang.Object handle,
java.lang.Object type)
ExtensionMechanismsHelper
setType in interface ExtensionMechanismsHelperhandle - the taggedValuetype - the tagDefinition
@Deprecated
public void setValueOfTag(java.lang.Object handle,
java.lang.String value)
ExtensionMechanismsHelper
setValueOfTag in interface ExtensionMechanismsHelperhandle - is the tagged valuevalue - is the value
public void setDataValues(java.lang.Object handle,
java.lang.String[] values)
ExtensionMechanismsHelper
setDataValues in interface ExtensionMechanismsHelperhandle - is the tagged valuevalues - an array of String values
public void addTaggedValue(java.lang.Object handle,
java.lang.Object taggedValue)
ExtensionMechanismsHelper
addTaggedValue in interface ExtensionMechanismsHelperhandle - The model element to add to.taggedValue - The tagged value to add.
public void removeTaggedValue(java.lang.Object handle,
java.lang.Object taggedValue)
ExtensionMechanismsHelper
removeTaggedValue in interface ExtensionMechanismsHelperhandle - The model element to remove from.taggedValue - The tagged value to remove.
public void setTaggedValue(java.lang.Object handle,
java.util.Collection taggedValues)
ExtensionMechanismsHelper
setTaggedValue in interface ExtensionMechanismsHelperhandle - The model element to set for.taggedValues - A Collection of tagged values.
public boolean hasStereotype(java.lang.Object handle,
java.lang.String name)
ExtensionMechanismsHelpertrue if the given ModelElement has a Stereotype
with the given name.
hasStereotype in interface ExtensionMechanismsHelperhandle - the given ModelElementname - the given name
public java.lang.Object makeProfileApplicable(java.lang.Object handle)
ExtensionMechanismsHelper
makeProfileApplicable in interface ExtensionMechanismsHelperhandle - the profile before made applicable to a model
public void applyProfile(java.lang.Object handle,
java.lang.Object profile)
ExtensionMechanismsHelper
applyProfile in interface ExtensionMechanismsHelperhandle - The model or profile.profile - The to be applied profile.
public void unapplyProfile(java.lang.Object handle,
java.lang.Object profile)
ExtensionMechanismsHelper
unapplyProfile in interface ExtensionMechanismsHelperhandle - The model or profile.profile - The to be unapplied profile.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |