org.jupe.editors.classdiagram.model
Interface IContainerElement

All Known Implementing Classes:
AbstractClassInterfaceElement, ClassDiagram, ClassElement, InterfaceElement, ObjectElement, PackageElement

public interface IContainerElement

Interface for model elements that can contain other elements (like classes, packages, attributes or methods).

Author:
Michael Pradel

Method Summary
 boolean assimilate(NodeModelElement element)
          Assimilates a model element that already exists, but whose uml2 reference has not yet been set.
 

Method Detail

assimilate

boolean assimilate(NodeModelElement element)
Assimilates a model element that already exists, but whose uml2 reference has not yet been set. It will be set in this method.

The assimilate methods should be called after the user has created an element in the editor. While the element is created, it isn't yet clear in which container it will be placed (directly in the diagram, a package, ...). That's why the process is split up in two parts (whereof this method is the second).

After the uml2 reference is set, the model element is added to the parent's child list.

Parameters:
element - The model element to assimilate to this container.
Returns:
True, if successful, false otherwise.