Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.poseidon.uml.model_management

Class Uml1SmDestructor

com.gentleware.poseidon.uml.model_management.Uml1SmDestructor

public class Uml1SmDestructor


Important: If class A owns (by a composition association) other elements (for example B), and you want to write method that deletes A, then your method in this destructor MUST explicitly remove that collections elements (using the helper-method removeCollection) before proceeding to remove the modelelemnt (of type A) itself. Otherwise the composed elements (B) would be deleted from the mdr (by the mdr), but those modelelements (B) would not get detached from their smdIds!!!
Authors:
Stephen Kelvin


 Association Summary
private UmlProject  _project
 
arrow_up
 

 Constructor Summary
public   Uml1SmDestructor(UmlProject project)
 
arrow_up
 

 Method Summary
public void   remove(Dependency dep)
 
public void   remove(UmlAssociation assoc)
 
public void   remove(StateMachine sm)
 
public void   remove(State sv)
 
public void   remove(TemplateArgument arg)
 
public void   remove(Transition trans)
 
public void   remove(ExtensionPoint ep)
 
public void   remove(ClassifierRole classifierRole)
 
public void   remove(AssociationRole ar)
 
public void   remove(Collaboration collab)
 
public void   remove(UmlPackage umlPackage)
Removes the pacakage and all connected dependencies. 
public void   remove(Attribute attr)
 
public void   remove(Parameter param)
 
public void   remove(Method method)
 
public void   remove(Operation op)
 
public void   remove(Object obj)
 
public void   remove(Stimulus stimulus)
 
public void   remove(Link link)
 
public void   remove(Argument arg)
 
public void   remove(Constraint constraint)
 
public void   remove(Message msg)
 
public void   remove(Guard guard)
 
public void   remove(Action action)
Also removes the actual arguments. 
public void   remove(Event event)
 
public void   remove(Include inc)
 
public void   remove(UmlClass umlClass)
 
public void   remove(Interface anInterface)
 
public void   remove(Signal signal)
 
public void   remove(Generalization generalization)
 
public void   remove(StateVertex modelElement)
 
public void   removeActionSequence(ActionSequence actionSeq)
 
public void   removeElementResidence(ModelElement element)
Removes all element residences of the given model element. 
public void   removeGeneric(RefObject modelElement)
This deletes a modelelement. 
public void   removeGeneric_butNoComposers(RefObject modelElement)
This command deletes an element, but it does NOT delete any composers. 
public void   removeMultiplicity(RefObject owner)
 
public void   removeResidence(RefObject element, Component container)
Removes the residence of the given model element at the given component. 
public void   removeTaggedValue(ModelElement modelElement, String tagDefinitionName)
 
arrow_up
 

Tagged Values
static false
 

 Association Detail

_project

private UmlProject _project

arrow_up
 Constructor Detail

Uml1SmDestructor

public Uml1SmDestructor Uml1SmDestructor(UmlProject project)

Parameters:
project -
Returns:
arrow_up
 Method Detail

remove

public void remove(Dependency dep)

Parameters:
dep -
arrow_up


remove

public void remove(UmlAssociation assoc)

Parameters:
assoc -
arrow_up


remove

public void remove(StateMachine sm)

Parameters:
sm -
arrow_up


remove

public void remove(State sv)

Parameters:
sv -
arrow_up


remove

public void remove(TemplateArgument arg)

Parameters:
arg -
arrow_up


remove

public void remove(Transition trans)

Parameters:
trans -
arrow_up


remove

public void remove(ExtensionPoint ep)

Parameters:
ep -
arrow_up


remove

public void remove(ClassifierRole classifierRole)

Parameters:
classifierRole -
arrow_up


remove

public void remove(AssociationRole ar)

Parameters:
ar -
arrow_up


remove

public void remove(Collaboration collab)

Parameters:
collab -
arrow_up


remove

public void remove(UmlPackage umlPackage)


Removes the pacakage and all connected dependencies. The owned elements are removed in UMLProject.  
Parameters:
umlPackage -
arrow_up


remove

public void remove(Attribute attr)

Parameters:
attr -
arrow_up


remove

public void remove(Parameter param)

Parameters:
param -
arrow_up


remove

public void remove(Method method)

Parameters:
method -
arrow_up


remove

public void remove(Operation op)

Parameters:
op -
arrow_up


remove

public void remove(Object obj)

Parameters:
obj -
arrow_up


remove

public void remove(Stimulus stimulus)

Parameters:
stimulus -
arrow_up


remove

public void remove(Link link)

Parameters:
link -
arrow_up


remove

public void remove(Argument arg)

Parameters:
arg -
arrow_up


remove

public void remove(Constraint constraint)

Parameters:
constraint -
arrow_up


remove

public void remove(Message msg)

Parameters:
msg -
arrow_up


remove

public void remove(Guard guard)

Parameters:
guard -
arrow_up


remove

public void remove(Action action)


Also removes the actual arguments.  
Parameters:
action -
arrow_up


remove

public void remove(Event event)

Parameters:
event -
arrow_up


remove

public void remove(Include inc)

Parameters:
inc -
arrow_up


remove

public void remove(UmlClass umlClass)

Parameters:
umlClass -
arrow_up


remove

public void remove(Interface anInterface)

Parameters:
anInterface -
arrow_up


remove

public void remove(Signal signal)

Parameters:
signal -
arrow_up


remove

public void remove(Generalization generalization)

Parameters:
generalization -
arrow_up


remove

public void remove(StateVertex modelElement)

Parameters:
modelElement -
arrow_up


removeActionSequence

public void removeActionSequence(ActionSequence actionSeq)

Parameters:
actionSeq -
arrow_up


removeElementResidence

public void removeElementResidence(ModelElement element)


Removes all element residences of the given model element.  
Parameters:
element - The model element to remove all residences for.
arrow_up


removeGeneric

public void removeGeneric(RefObject modelElement)


This deletes a modelelement. It also deletes elements which become invalid. e.g if you delete the multiplicityrange of a multiplicity, then it also deletes the multiplicity If you need to delete ONLY the element, but not composers, then use the method removeGeneric_butNoComposers.  
Parameters:
modelElement -
arrow_up


removeGeneric_butNoComposers

public void removeGeneric_butNoComposers(RefObject modelElement)


This command deletes an element, but it does NOT delete any composers. e.g. even when you delete one out of two association-ends, then the other end does not get deleted. (if you need that, then use the normal removeGeneric) This method is primarily for step-by-step-deletion needed in undo of some commands  
Parameters:
modelElement -
arrow_up


removeMultiplicity

public void removeMultiplicity(RefObject owner)

Parameters:
owner -
arrow_up


removeResidence

public void removeResidence(RefObject element, Component container)


Removes the residence of the given model element at the given component.  
Parameters:
element - The model element to remove the residence for.
container - The component to remove the residence from.
Since:
1.6
arrow_up


removeTaggedValue

public void removeTaggedValue(ModelElement modelElement, String tagDefinitionName)

Parameters:
modelElement -
tagDefinitionName -
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.