|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.model.uml.CoreHelperImpl
Helper class for UML Foundation::Core Package.
Current implementation is a placeholder.
| Field Summary | |
private static Logger |
LOG
Logger. |
private NSUMLModelImplementation |
nsmodel
The model implementation. |
| Constructor Summary | |
(package private) |
CoreHelperImpl(NSUMLModelImplementation implementation)
Don't allow instantiation. |
| Method Summary | |
void |
addAnnotatedElement(Object comment,
Object annotatedElement)
Adds an annotated element to a comment. |
void |
addClient(Object handle,
Object element)
Adds a client model element to some dependency. |
void |
addClientDependency(Object handle,
Object dependency)
Adds a client dependency to some modelelement. |
void |
addComment(Object element,
Object comment)
Add a new comment to a model element. |
void |
addConnection(Object handle,
Object connection)
Add an End to a connection. |
void |
addConstraint(Object handle,
Object mc)
Adds a constraint to some model element. |
void |
addDeploymentLocation(Object handle,
Object node)
|
void |
addFeature(Object handle,
int index,
Object f)
Adds a feature to some classifier. |
void |
addFeature(Object handle,
Object f)
Adds a feature to some classifier. |
void |
addLink(Object handle,
Object link)
Add the given Link to the given Link or Association. |
void |
addMethod(Object handle,
Object m)
Adds a method to some operation and copies the op's attributes to the method. |
void |
addOwnedElement(Object handle,
Object me)
Adds a model element to some namespace. |
void |
addParameter(Object handle,
int index,
Object parameter)
Add a Parameter to the given object at given location. |
void |
addParameter(Object handle,
Object parameter)
Add a Parameter to the given object. |
void |
addRaisedSignal(Object handle,
Object sig)
Add a raised Signal to a Message or Operation. |
void |
addSourceFlow(Object handle,
Object flow)
Add a source flow to a model element. |
void |
addSupplier(Object handle,
Object element)
Adds a supplier classifier to some abstraction. |
void |
addSupplierDependency(Object supplier,
Object dependency)
Adds a supplier dependency to some modelelement. |
void |
addTaggedValue(Object handle,
Object taggedValue)
Adds a TaggedValue to a ModelElement. |
void |
addTargetFlow(Object handle,
Object flow)
Add a target flow to a model element. |
boolean |
equalsAggregationKind(Object associationEnd,
String kindType)
|
Collection |
getAllAttributes(Object clazz)
Returns all attributes of some classifier and of its parents. |
Collection |
getAllBehavioralFeatures(Object element)
Returns all behavioralfeatures found in this element and its children. |
Collection |
getAllClasses(Object ns)
Returns all classes found in this namespace and in its children. |
Collection |
getAllClassifiers(Object namespace)
Returns all classifiers found in this namespace and in its children. |
Collection |
getAllComponents(Object ns)
Returns all components found in this namespace and in its children. |
Collection |
getAllContents(Object clazz)
Returns the contents (owned elements) of this classifier and all its parents as specified in section 2.5.3.8 of the UML 1.3 spec. |
Collection |
getAllDataTypes(Object ns)
Returns all components found in this namespace and in its children. |
Collection |
getAllInterfaces(Object ns)
Returns all interfaces found in this namespace and in its children. |
Collection |
getAllNodes(Object ns)
Returns all components found in this namespace and in its children. |
Collection |
getAllPossibleNamespaces(Object modelElement,
Object model)
Returns all possible namespaces that may be selected by some given modelelement. |
Collection |
getAllRealizedInterfaces(Object o)
Returns all interfaces that are realized by the given class or by its superclasses. |
Collection |
getAllSupertypes(Object cls1)
This method returns all Classifiers of which this class is a direct or indirect subtype. |
Collection |
getAssociatedClassifiers(Object aclassifier)
Gets all classifiers that are associated to the given classifier (have an association relationship with the classifier). |
Collection |
getAssociateEnds(Object classifier)
This method returns all opposite AssociationEnds of a given Classifier. |
Collection |
getAssociateEndsInh(Object classifier1)
This method returns all opposite AssociationEnds of a given Classifier, including inherited. |
Object |
getAssociationEnd(Object type,
Object assoc)
Returns the associationend between a classifier and an associaton. |
Collection |
getAssociations(Object oclassifier)
Returns all associations for some classifier. |
Collection |
getAssociations(Object from,
Object to)
Gets the associations between the classifiers from and to. |
Collection |
getAttributes(Object classifier)
This method returns all attributes of a given Classifier. |
Collection |
getAttributesInh(Object classifier)
This method returns all attributes of a given Classifier, including inherited. |
Collection |
getBehavioralFeatures(Object clazz)
Returns all behavioral features of some classifier. |
private void |
getChildren(Collection currentChildren,
ru.novosoft.uml.foundation.core.MGeneralization gen)
Adds all children recursively to the Collection in the first argument. |
Collection |
getChildren(Object o)
Returns all children from some given generalizableelement on all levels (the complete tree excluding the generalizable element itself). |
Collection |
getDependencies(Object supplierObj,
Object clientObj)
Returns the dependencies between some supplier modelelement and some client modelelement. |
Object |
getDestination(Object relationship)
Returns the destination of a relation. |
Collection |
getExtendedClassifiers(Object clazz)
Returns all classes some generalizable element extends. |
Collection |
getExtendingClassifiers(Object clazz)
Returns all classifiers that extend some classifier. |
Collection |
getExtendingElements(Object clazz)
Returns all elements that extend some class. |
String |
getFeatureName(Object o)
This method returns the name of a feature. |
Object |
getFirstSharedNamespace(Object ns1,
Object ns2)
Gets the first namespace two namespaces share. |
Collection |
getFlows(Object source,
Object target)
Returns all flows from some source modelelement to a target modelelement. |
Object |
getGeneralization(Object achild,
Object aparent)
Gets the generalization between two generalizable elements. |
Collection |
getOperations(Object classifier)
This method returns all operations of a given Classifier. |
Collection |
getOperationsInh(Object classifier)
This method returns all operations of a given Classifier, including inherited. |
Collection |
getRealizedInterfaces(Object cls)
Return all interfaces the given class realizes. |
Collection |
getRelationships(Object source,
Object dest)
Returns all relationships between the source and dest modelelement and vica versa. |
Object |
getReturnParameter(Object operation1)
This method finds all paramters of the given operation which have the MParamterDirectionType RETURN. |
Collection |
getReturnParameters(Object operation)
Returns all return parameters for an operation. |
Object |
getSource(Object relationship)
Returns the source of a relation. |
Object |
getSpecification(Object object)
Returns the operation that some method realized. |
Collection |
getSpecifications(Object classifier)
Returns all Interfaces of which this class is a realization. |
Collection |
getSubtypes(Object cls)
This method returns all Classifiers of which this class is a direct supertype. |
Collection |
getSupertypes(Object ogeneralizableelement)
This method returns all Classifiers of which this class is a direct subtype. |
boolean |
hasCompositeEnd(Object association)
|
private Collection |
internalGetAllRealizedInterfaces(Object o,
Collection col,
Set visited)
Helper method for getAllRealizedInterfaces. |
boolean |
isMethod(Object o)
This method returns if the object is a method. |
boolean |
isOperation(Object o)
This method returns if the object is an operation. |
boolean |
isSubType(Object type,
Object subType)
Determine if a meta type is a subtype of another. |
private boolean |
isValidNamespace(ru.novosoft.uml.foundation.core.MAssociation assoc,
ru.novosoft.uml.foundation.core.MNamespace ns)
|
private boolean |
isValidNamespace(ru.novosoft.uml.behavior.collaborations.MCollaboration collab,
ru.novosoft.uml.foundation.core.MNamespace ns)
|
private boolean |
isValidNamespace(ru.novosoft.uml.foundation.core.MGeneralizableElement gen,
ru.novosoft.uml.foundation.core.MNamespace ns)
|
private boolean |
isValidNamespace(ru.novosoft.uml.foundation.core.MGeneralization gen,
ru.novosoft.uml.foundation.core.MNamespace ns)
|
private boolean |
isValidNamespace(ru.novosoft.uml.foundation.core.MStructuralFeature struc,
ru.novosoft.uml.foundation.core.MNamespace ns)
|
boolean |
isValidNamespace(Object mObj,
Object nsObj)
Returns true if some modelelement may be owned by the given namespace. |
void |
removeAnnotatedElement(Object handle,
Object me)
Remove the given modelelement from a given comment. |
void |
removeClientDependency(Object handle,
Object dep)
This method removes a dependency from a model element. |
void |
removeConstraint(Object handle,
Object cons)
Remove the given constraint from a given ModelElement. |
void |
removeDeploymentLocation(Object handle,
Object node)
|
void |
removeFeature(Object cls,
Object feature)
This method removes a feature from a classifier. |
void |
removeOwnedElement(Object handle,
Object value)
Removes a owned model element from a namespace. |
void |
removeParameter(Object handle,
Object parameter)
This method removes a parameter from an operation. |
void |
removeSourceFlow(Object handle,
Object flow)
Remove a source flow from a model element. |
void |
removeSupplierDependency(Object supplier,
Object dependency)
Adds a supplier dependency to some modelelement. |
void |
removeTaggedValue(Object handle,
String name)
Removes a named tagged value from a model element, ie subsequent calls to getTaggedValue will return null for name, at least until a tagged value with that name has been added again. |
void |
removeTargetFlow(Object handle,
Object flow)
Add a target flow to a model element. |
void |
setAbstract(Object handle,
boolean flag)
Sets if of some model element is abstract. |
void |
setActive(Object handle,
boolean active)
Makes a Class active. |
void |
setAggregation(Object handle,
Object aggregationKind)
Sets the aggregation of some model element. |
void |
setAnnotatedElements(Object handle,
Collection elems)
Sets the list of annotated elements of the given comment. |
void |
setAssociation(Object handle,
Object association)
Sets the association of some model element. |
void |
setAttributes(Object classifier,
Collection attributes)
This method replaces all attributes of the given classifier by the given collection of attributes. |
void |
setBody(Object handle,
Object expr)
Sets a body of a given Method, Constraint or Expression. |
void |
setChangeability(Object handle,
Object ck)
Set the Changeability of a StructuralFeature or AssociationEnd. |
void |
setChangeable(Object handle,
boolean flag)
Set the changeability of some feature. |
void |
setChild(Object handle,
Object child)
Set the child for a generalization. |
void |
setConcurrency(Object handle,
Object concurrencyKind)
Set the concurrency of some operation. |
void |
setConnections(Object handle,
Collection elems)
Sets the list of connections of the given association or link. |
void |
setDefaultValue(Object handle,
Object expr)
Sets a default value of some parameter. |
void |
setDiscriminator(Object handle,
String discriminator)
|
void |
setFeature(Object elem,
int i,
Object impl)
Set the feature at the given position. |
void |
setFeatures(Object handle,
Collection features)
Sets the features of some model element. |
void |
setImplementationLocation(Object handle,
Object component)
Set the ImplementationLocation of the given ElementResidence to the given Component. |
void |
setInitialValue(Object at,
Object expr)
Sets an initial value. |
void |
setKind(Object handle,
Object kind)
Set some parameters kind. |
void |
setKindToIn(Object handle)
Set some parameters kind to 'in'. |
void |
setKindToInOut(Object handle)
Set some parameters kind to 'in/out'. |
void |
setKindToOut(Object handle)
Set some parameters kind to 'out'. |
void |
setKindToReturn(Object handle)
Set some parameters kind to 'return'. |
void |
setLeaf(Object handle,
boolean flag)
Sets if some model element is a leaf. |
void |
setModelElementContainer(Object handle,
Object container)
Sets the container that owns the handle. |
void |
setMultiplicity(Object handle,
Object arg)
Sets a multiplicity of some model element. |
void |
setName(Object handle,
String name)
Sets a name of some modelelement. |
void |
setNamespace(Object handle,
Object ns)
Sets a namespace of some modelelement. |
void |
setNavigable(Object handle,
boolean flag)
Sets the navigability of some association end. |
void |
setOperations(Object classifier,
Collection operations)
This method replaces all operations of the given classifier by the given collection of operations. |
void |
setOrdering(Object handle,
Object ok)
Set the OrderingKind of a given AssociationEnd. |
void |
setOwner(Object handle,
Object owner)
Set the owner of a Feature. |
void |
setOwnerScope(Object handle,
Object os)
|
void |
setParameters(Object handle,
Collection parameters)
Sets the parameters of a classifier, event, objectflowstate or behavioralfeature. |
void |
setParent(Object handle,
Object parent)
Sets the parent of a generalization. |
void |
setPowertype(Object handle,
Object pt)
Set the PowerType of a Generalization. |
void |
setQualifiers(Object handle,
Collection elems)
Sets the qualified attributes of an association end. |
void |
setQuery(Object handle,
boolean flag)
Sets the query flag of a behavioral feature. |
void |
setRaisedSignals(Object handle,
Collection raisedSignals)
Sets the raised signals of some behavioural feature. |
void |
setResident(Object handle,
Object resident)
|
void |
setResidents(Object handle,
Collection residents)
Sets the residents of some model element. |
void |
setRoot(Object handle,
boolean flag)
Sets if some model element is a root. |
void |
setSources(Object handle,
Collection specifications)
|
void |
setSpecification(Object handle,
boolean specification)
Set the Specification flag for a ModelElement. |
void |
setSpecifications(Object handle,
Collection specifications)
Sets the specifications of some association end. |
void |
setStereotype(Object handle,
Object stereo)
Sets the stereotype of some modelelement. |
void |
setTaggedValue(Object handle,
String tag,
String value)
Sets a tagged value of some modelelement. |
void |
setTaggedValues(Object handle,
Collection taggedValues)
Set the TaggedValues of a ModelElement. |
void |
setTargetScope(Object handle,
Object scopeKind)
Set the target scope of some association end or structural feature. |
void |
setType(Object handle,
Object type)
Sets the type of some parameter. |
void |
setUUID(Object handle,
String uuid)
Set the UUID of this element. |
void |
setVisibility(Object handle,
Object visibility)
Set the visibility of some modelelement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final Logger LOG
private NSUMLModelImplementation nsmodel
| Constructor Detail |
CoreHelperImpl(NSUMLModelImplementation implementation)
implementation - To get other helpers and factories.| Method Detail |
public boolean isSubType(Object type,
Object subType)
isSubType in interface org.argouml.model.CoreHelpertype - The parent metatype.subType - The metatype to test for being a subtype.
public Collection getAllSupertypes(Object cls1)
getAllSupertypes in interface org.argouml.model.CoreHelpercls1 - the class you want to have the parents for
MGeneralizableElementpublic Collection getSupertypes(Object ogeneralizableelement)
getSupertypes in interface org.argouml.model.CoreHelperogeneralizableelement - the class you want to have the parents for
MGeneralizableElementpublic Collection getAssociateEnds(Object classifier)
getAssociateEnds in interface org.argouml.model.CoreHelperclassifier - the classifier you want to have the opposite
association ends for
public Collection getAssociateEndsInh(Object classifier1)
getAssociateEndsInh in interface org.argouml.model.CoreHelperclassifier1 - the classifier you want to have the opposite
association ends for
public void removeFeature(Object cls,
Object feature)
removeFeature in interface org.argouml.model.CoreHelpercls - the classifierfeature - the feature to be removedpublic String getFeatureName(Object o)
getFeatureName in interface org.argouml.model.CoreHelpero - is the feature
public boolean isMethod(Object o)
isMethod in interface org.argouml.model.CoreHelpero - object
public boolean isOperation(Object o)
isOperation in interface org.argouml.model.CoreHelpero - object
public Collection getOperations(Object classifier)
getOperations in interface org.argouml.model.CoreHelperclassifier - the classifier you want to have the operations for
public void setOperations(Object classifier,
Collection operations)
setOperations in interface org.argouml.model.CoreHelperclassifier - the given classifieroperations - the new operationspublic Collection getAttributes(Object classifier)
getAttributes in interface org.argouml.model.CoreHelperclassifier - the classifier you want to have the attributes for
public void setAttributes(Object classifier,
Collection attributes)
setAttributes in interface org.argouml.model.CoreHelperclassifier - the classifierattributes - the new attributespublic Collection getAttributesInh(Object classifier)
getAttributesInh in interface org.argouml.model.CoreHelperclassifier - the classifier you want to have the attributes for
public Collection getOperationsInh(Object classifier)
getOperationsInh in interface org.argouml.model.CoreHelperclassifier - the classifier you want to have the operations for
public Object getReturnParameter(Object operation1)
getReturnParameter in interface org.argouml.model.CoreHelperoperation1 - the operation you want to find the return
parameter for.
public Collection getReturnParameters(Object operation)
getReturnParameters in interface org.argouml.model.CoreHelperoperation - is the operation.
public Object getSpecification(Object object)
getSpecification in interface org.argouml.model.CoreHelperobject - the method you want the realized operation of.
public Collection getSpecifications(Object classifier)
getSpecifications in interface org.argouml.model.CoreHelperclassifier - the class you want to have the interfaces for
public Collection getSubtypes(Object cls)
getSubtypes in interface org.argouml.model.CoreHelpercls - the class you want to have the children for
MGeneralizableElementpublic Collection getAllBehavioralFeatures(Object element)
getAllBehavioralFeatures in interface org.argouml.model.CoreHelperelement - is the element
public Collection getBehavioralFeatures(Object clazz)
getBehavioralFeatures in interface org.argouml.model.CoreHelperclazz - The classifier
public Collection getAllInterfaces(Object ns)
getAllInterfaces in interface org.argouml.model.CoreHelperns - the given namespace
public Collection getAllClasses(Object ns)
getAllClasses in interface org.argouml.model.CoreHelperns - is the namespace.
public Collection getRealizedInterfaces(Object cls)
getRealizedInterfaces in interface org.argouml.model.CoreHelpercls - the classifier
public Collection getExtendedClassifiers(Object clazz)
getExtendedClassifiers in interface org.argouml.model.CoreHelperclazz - is the generalizable element
public Object getGeneralization(Object achild,
Object aparent)
getGeneralization in interface org.argouml.model.CoreHelperachild - is the child generalizable element.aparent - is the parent generalizable element.
public Collection getFlows(Object source,
Object target)
getFlows in interface org.argouml.model.CoreHelpersource - is the source model element.target - is the target model element.
public Collection getExtendingElements(Object clazz)
getExtendingElements in interface org.argouml.model.CoreHelperclazz - is the class (a generalizable element)
public Collection getExtendingClassifiers(Object clazz)
getExtendingClassifiers in interface org.argouml.model.CoreHelperclazz - is the classifier.
public Collection getAllComponents(Object ns)
getAllComponents in interface org.argouml.model.CoreHelperns - is the namespace.
public Collection getAllDataTypes(Object ns)
getAllDataTypes in interface org.argouml.model.CoreHelperns - is the namespace
public Collection getAllNodes(Object ns)
getAllNodes in interface org.argouml.model.CoreHelperns - is the namespace
public Collection getAssociatedClassifiers(Object aclassifier)
getAssociatedClassifiers in interface org.argouml.model.CoreHelperaclassifier - an MClassifier
public Collection getAssociations(Object from,
Object to)
getAssociations in interface org.argouml.model.CoreHelperfrom - a classifierto - a classifier
public Collection getAllClassifiers(Object namespace)
getAllClassifiers in interface org.argouml.model.CoreHelpernamespace - the given namespace
public Collection getAssociations(Object oclassifier)
getAssociations in interface org.argouml.model.CoreHelperoclassifier - the given classifier
public Object getAssociationEnd(Object type,
Object assoc)
getAssociationEnd in interface org.argouml.model.CoreHelpertype - is the classifierassoc - is the association
public Collection getAllContents(Object clazz)
getAllContents in interface org.argouml.model.CoreHelperclazz - is the classifier
public Collection getAllAttributes(Object clazz)
getAllAttributes in interface org.argouml.model.CoreHelperclazz - is the classifier
public Object getSource(Object relationship)
This method also works to get the source of a Link.
TODO: move this method to a generic ModelHelper
getSource in interface org.argouml.model.CoreHelperrelationship - is the relation
public Object getDestination(Object relationship)
This method also works for links.
TODO: move this method to a generic ModelHelper
getDestination in interface org.argouml.model.CoreHelperrelationship - is the relation
public Collection getDependencies(Object supplierObj,
Object clientObj)
getDependencies in interface org.argouml.model.CoreHelpersupplierObj - a MModelElementclientObj - a MModelElement
public Collection getRelationships(Object source,
Object dest)
getRelationships in interface org.argouml.model.CoreHelpersource - is the source model elementdest - is the destination model element
public boolean isValidNamespace(Object mObj,
Object nsObj)
isValidNamespace in interface org.argouml.model.CoreHelpermObj - a MModelElementnsObj - a MNamespace
private boolean isValidNamespace(ru.novosoft.uml.behavior.collaborations.MCollaboration collab,
ru.novosoft.uml.foundation.core.MNamespace ns)
private boolean isValidNamespace(ru.novosoft.uml.foundation.core.MGeneralization gen,
ru.novosoft.uml.foundation.core.MNamespace ns)
private boolean isValidNamespace(ru.novosoft.uml.foundation.core.MStructuralFeature struc,
ru.novosoft.uml.foundation.core.MNamespace ns)
private boolean isValidNamespace(ru.novosoft.uml.foundation.core.MAssociation assoc,
ru.novosoft.uml.foundation.core.MNamespace ns)
private boolean isValidNamespace(ru.novosoft.uml.foundation.core.MGeneralizableElement gen,
ru.novosoft.uml.foundation.core.MNamespace ns)
public Object getFirstSharedNamespace(Object ns1,
Object ns2)
getFirstSharedNamespace in interface org.argouml.model.CoreHelperns1 - is the first name spacens2 - is the second name space
public Collection getAllPossibleNamespaces(Object modelElement,
Object model)
getAllPossibleNamespaces in interface org.argouml.model.CoreHelpermodelElement - is the model elementmodel - the model to search
public Collection getChildren(Object o)
getChildren in interface org.argouml.model.CoreHelpero - is the generalizable element
IllegalStateException - if there is a circular reference.
private void getChildren(Collection currentChildren,
ru.novosoft.uml.foundation.core.MGeneralization gen)
currentChildren - collection to collect them in.gen - element whose children are added.
IllegalStateException - if there is a circular reference.public Collection getAllRealizedInterfaces(Object o)
getAllRealizedInterfaces in interface org.argouml.model.CoreHelpero - is the given class
private Collection internalGetAllRealizedInterfaces(Object o,
Collection col,
Set visited)
o - col - visited -
public final boolean hasCompositeEnd(Object association)
hasCompositeEnd in interface org.argouml.model.CoreHelperassociation - the association to be investigated
public final boolean equalsAggregationKind(Object associationEnd,
String kindType)
equalsAggregationKind in interface org.argouml.model.CoreHelperassociationEnd - is the association endkindType - the MAggregationKind as a string in lower case letter,
eg: composite.
public void removeAnnotatedElement(Object handle,
Object me)
removeAnnotatedElement in interface org.argouml.model.CoreHelperhandle - MCommentme - MModelElement
public void removeClientDependency(Object handle,
Object dep)
removeClientDependency in interface org.argouml.model.CoreHelperhandle - is the model elementdep - is the dependency
public void removeConstraint(Object handle,
Object cons)
removeConstraint in interface org.argouml.model.CoreHelperhandle - ModelElementcons - Constraint
public void removeOwnedElement(Object handle,
Object value)
removeOwnedElement in interface org.argouml.model.CoreHelperhandle - is the name spacevalue - is the model element
public void removeParameter(Object handle,
Object parameter)
removeParameter in interface org.argouml.model.CoreHelperhandle - The operation.parameter - The parameter.
public void removeSourceFlow(Object handle,
Object flow)
removeSourceFlow in interface org.argouml.model.CoreHelperhandle - The model element.flow - The flow.
public void removeSupplierDependency(Object supplier,
Object dependency)
removeSupplierDependency in interface org.argouml.model.CoreHelpersupplier - the supplierdependency - the dependency
public void removeTaggedValue(Object handle,
String name)
removeTaggedValue in interface org.argouml.model.CoreHelperhandle - the model element to remove the tagged value fromname - the name of the tagged value
IllegalArgumentException - if handle isn't a model element
public void removeTargetFlow(Object handle,
Object flow)
removeTargetFlow in interface org.argouml.model.CoreHelperhandle - The model element.flow - The flow to add.
public void addAnnotatedElement(Object comment,
Object annotatedElement)
addAnnotatedElement in interface org.argouml.model.CoreHelpercomment - The comment to which the element is annotatedannotatedElement - The element to annotate
public void addClient(Object handle,
Object element)
addClient in interface org.argouml.model.CoreHelperhandle - dependency.element - The model element.
IllegalArgumentException - if the handle is not a dependency
or the element is not a model element.
public void addClientDependency(Object handle,
Object dependency)
addClientDependency in interface org.argouml.model.CoreHelperhandle - the modelelementdependency - the dependency
public void addComment(Object element,
Object comment)
addComment in interface org.argouml.model.CoreHelperelement - the element to which the comment is to be addedcomment - the comment for the model element
public void addConnection(Object handle,
Object connection)
addConnection in interface org.argouml.model.CoreHelperhandle - Association or Linkconnection - AssociationEnd or LinkEnd
public void addConstraint(Object handle,
Object mc)
addConstraint in interface org.argouml.model.CoreHelperhandle - model elementmc - constraint
public void addDeploymentLocation(Object handle,
Object node)
addDeploymentLocation in interface org.argouml.model.CoreHelperhandle - Componentnode - Node
public void addFeature(Object handle,
int index,
Object f)
addFeature in interface org.argouml.model.CoreHelperhandle - classifierindex - positionf - feature
public void addFeature(Object handle,
Object f)
addFeature in interface org.argouml.model.CoreHelperhandle - classifierf - feature
public void addLink(Object handle,
Object link)
addLink in interface org.argouml.model.CoreHelperhandle - the Link or Associationlink - Link
public void addMethod(Object handle,
Object m)
addMethod in interface org.argouml.model.CoreHelperhandle - is the operationm - is the method
public void addOwnedElement(Object handle,
Object me)
addOwnedElement in interface org.argouml.model.CoreHelperhandle - namespaceme - model element
public void addParameter(Object handle,
int index,
Object parameter)
addParameter in interface org.argouml.model.CoreHelperhandle - The object that will get the Parameter:
MEvent, MBehavioralFeature.index - the locationparameter - Object that will be added
public void addParameter(Object handle,
Object parameter)
addParameter in interface org.argouml.model.CoreHelperhandle - The object that will get the Parameter:
MObjectFlowState, MEvent, MBehavioralFeature, MClassifier.parameter - Object that will be added
public void addRaisedSignal(Object handle,
Object sig)
addRaisedSignal in interface org.argouml.model.CoreHelperhandle - the Message or Operationsig - the Signal that is raised
public void addSourceFlow(Object handle,
Object flow)
addSourceFlow in interface org.argouml.model.CoreHelperhandle - The model element.flow - The flow.
public void addSupplier(Object handle,
Object element)
addSupplier in interface org.argouml.model.CoreHelperhandle - abstractionelement - supplier model element
public void addSupplierDependency(Object supplier,
Object dependency)
addSupplierDependency in interface org.argouml.model.CoreHelpersupplier - the supplierdependency - the dependency
public void addTaggedValue(Object handle,
Object taggedValue)
addTaggedValue in interface org.argouml.model.CoreHelperhandle - ModelElementtaggedValue - TaggedValue
public void addTargetFlow(Object handle,
Object flow)
addTargetFlow in interface org.argouml.model.CoreHelperhandle - The model element.flow - The flow to add.
public void setAbstract(Object handle,
boolean flag)
setAbstract in interface org.argouml.model.CoreHelperhandle - is the classifierflag - is true if it should be abstract
public void setActive(Object handle,
boolean active)
setActive in interface org.argouml.model.CoreHelperhandle - Classactive - boolean
public void setAggregation(Object handle,
Object aggregationKind)
setAggregation in interface org.argouml.model.CoreHelperhandle - the model element to set aggregationaggregationKind - the aggregation kind
public void setAnnotatedElements(Object handle,
Collection elems)
setAnnotatedElements in interface org.argouml.model.CoreHelperhandle - the given commentelems - the list of annotated modelelements
public void setAssociation(Object handle,
Object association)
setAssociation in interface org.argouml.model.CoreHelperhandle - the model element to set associationassociation - is the association
public void setLeaf(Object handle,
boolean flag)
setLeaf in interface org.argouml.model.CoreHelperhandle - model elementflag - is true if it is a leaf.
public void setRaisedSignals(Object handle,
Collection raisedSignals)
setRaisedSignals in interface org.argouml.model.CoreHelperhandle - the behavioural featureraisedSignals - the raised signals
public void setBody(Object handle,
Object expr)
setBody in interface org.argouml.model.CoreHelperhandle - is the method, expressionexpr - is the body string for the expression
public void setChangeability(Object handle,
Object ck)
setChangeability in interface org.argouml.model.CoreHelperhandle - StructuralFeature or AssociationEndck - ChangeableKind
public void setChangeable(Object handle,
boolean flag)
setChangeable in interface org.argouml.model.CoreHelperhandle - is the featureflag - is the changeability flag
public void setChild(Object handle,
Object child)
setChild in interface org.argouml.model.CoreHelperhandle - Generalizationchild - GeneralizableElement
public void setConcurrency(Object handle,
Object concurrencyKind)
setConcurrency in interface org.argouml.model.CoreHelperhandle - is the operationconcurrencyKind - is the concurrency
public void setConnections(Object handle,
Collection elems)
setConnections in interface org.argouml.model.CoreHelperhandle - the given association or linkelems - the list of association-ends or link-ends
public void setDefaultValue(Object handle,
Object expr)
setDefaultValue in interface org.argouml.model.CoreHelperhandle - is the parameterexpr - is the expression
public void setDiscriminator(Object handle,
String discriminator)
setDiscriminator in interface org.argouml.model.CoreHelperhandle - a generalizationdiscriminator - the discriminator to set
public void setFeature(Object elem,
int i,
Object impl)
setFeature in interface org.argouml.model.CoreHelperelem - The classifier to set.i - The position. Start with 0.impl - The feature to set.
public void setFeatures(Object handle,
Collection features)
setFeatures in interface org.argouml.model.CoreHelperhandle - the model element to set features tofeatures - the list of features
public void setImplementationLocation(Object handle,
Object component)
setImplementationLocation in interface org.argouml.model.CoreHelperhandle - the ElementResidencecomponent - the Component
public void setInitialValue(Object at,
Object expr)
setInitialValue in interface org.argouml.model.CoreHelperat - attribute that we set the initial value ofexpr - that is the value to set. Can be null.
public void setKind(Object handle,
Object kind)
setKind in interface org.argouml.model.CoreHelperhandle - is the parameterkind - is the directionkindpublic void setKindToIn(Object handle)
setKindToIn in interface org.argouml.model.CoreHelperhandle - is the parameterpublic void setKindToInOut(Object handle)
setKindToInOut in interface org.argouml.model.CoreHelperhandle - is the parameterpublic void setKindToOut(Object handle)
setKindToOut in interface org.argouml.model.CoreHelperhandle - is the parameterpublic void setKindToReturn(Object handle)
setKindToReturn in interface org.argouml.model.CoreHelperhandle - is the parameter
public void setModelElementContainer(Object handle,
Object container)
Warning: when changing the implementation of this method be warned that the sequence of the if then else tree DOES matter. Most notabely, do not move the setNamespace method any level up in the tree.
Warning: the implementation does not support setting the owner of actions. Use setState1 etc. on action for that goal
setModelElementContainer in interface org.argouml.model.CoreHelperhandle - The modelelement that must be added to the containercontainer - The owning modelelement
IllegalArgumentException - when the handle or
container is null or if the handle cannot be added to the
container.
public void setMultiplicity(Object handle,
Object arg)
setMultiplicity in interface org.argouml.model.CoreHelperhandle - model elementarg - multiplicity as string OR multiplicity object
public void setName(Object handle,
String name)
setName in interface org.argouml.model.CoreHelperhandle - is the model elementname - to set
public void setNamespace(Object handle,
Object ns)
setNamespace in interface org.argouml.model.CoreHelperhandle - is the model elementns - is the namespace. Can be null.
public void setNavigable(Object handle,
boolean flag)
setNavigable in interface org.argouml.model.CoreHelperhandle - is the association endflag - is the navigability flag
public void setOrdering(Object handle,
Object ok)
setOrdering in interface org.argouml.model.CoreHelperhandle - AssociationEndok - OrderingKind
public void setOwner(Object handle,
Object owner)
setOwner in interface org.argouml.model.CoreHelperhandle - Featureowner - Classifier or null
public void setOwnerScope(Object handle,
Object os)
setOwnerScope in interface org.argouml.model.CoreHelperhandle - Featureos - ScopeKind
public void setParameters(Object handle,
Collection parameters)
setParameters in interface org.argouml.model.CoreHelperhandle - the classifier, event, objectflowstate or
behavioralfeatureparameters - is a Collection of parameters
public void setParent(Object handle,
Object parent)
setParent in interface org.argouml.model.CoreHelperhandle - generalizationparent - generalizable element (parent)
public void setPowertype(Object handle,
Object pt)
setPowertype in interface org.argouml.model.CoreHelperhandle - Generalizationpt - Classifier
public void setQualifiers(Object handle,
Collection elems)
setQualifiers in interface org.argouml.model.CoreHelperhandle - the association endelems - is a Collection of qualifiers
public void setQuery(Object handle,
boolean flag)
setQuery in interface org.argouml.model.CoreHelperhandle - is the behavioral featureflag - is the query flag
public void setResident(Object handle,
Object resident)
setResident in interface org.argouml.model.CoreHelperhandle - ElementResidenceresident - ModelElement or null
public void setResidents(Object handle,
Collection residents)
setResidents in interface org.argouml.model.CoreHelperhandle - the model elementresidents - collection
public void setRoot(Object handle,
boolean flag)
setRoot in interface org.argouml.model.CoreHelperhandle - model elementflag - is true if it is a root
public void setSources(Object handle,
Collection specifications)
setSources in interface org.argouml.model.CoreHelperhandle - Flowspecifications - the collection of ModelEvents (sourceFlow)
public void setSpecification(Object handle,
boolean specification)
setSpecification in interface org.argouml.model.CoreHelperhandle - ModelElementspecification - boolean
public void setSpecifications(Object handle,
Collection specifications)
setSpecifications in interface org.argouml.model.CoreHelperhandle - the association endspecifications - collection
public void setStereotype(Object handle,
Object stereo)
TODO: Currently does not copy the stereotype, but changes the namespace to the new model (kidnapping it). That might possibly be dangerous, especially if more complex profile models are developed. This documentation should say what is supposed to be done. I think it would have been better if the caller had been responsible for the stereotype being in the right model and been adviced of eg ModelManagementHelper.getCorrespondingElement(...). Or if that had been used here. This function could possibly assert that the caller had got it right.
setStereotype in interface org.argouml.model.CoreHelperhandle - model elementstereo - stereotype
public void setTaggedValue(Object handle,
String tag,
String value)
setTaggedValue in interface org.argouml.model.CoreHelperhandle - is the model elementtag - is the tag name (a string)value - is the value
public void setTaggedValues(Object handle,
Collection taggedValues)
setTaggedValues in interface org.argouml.model.CoreHelperhandle - ModelElementtaggedValues - Collection of TaggedValues
public void setTargetScope(Object handle,
Object scopeKind)
setTargetScope in interface org.argouml.model.CoreHelperhandle - the model elementscopeKind - the target scope
public void setType(Object handle,
Object type)
setType in interface org.argouml.model.CoreHelperhandle - is the model elementtype - is the type (a classifier)
public void setUUID(Object handle,
String uuid)
setUUID in interface org.argouml.model.CoreHelperhandle - base element (MBase type)uuid - is the UUID
public void setVisibility(Object handle,
Object visibility)
setVisibility in interface org.argouml.model.CoreHelperhandle - elementvisibility - is the visibility
public void removeDeploymentLocation(Object handle,
Object node)
removeDeploymentLocation in interface org.argouml.model.CoreHelperhandle - Componentnode - Node
|
|||||||||||
| 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 |