public interface IModelViewTemplate<T extends MObject>
getId()
.
Several 'standard' model views template comes with Modelio, additional ones can be contributed either by extra-plugins or modules.Modifier and Type | Method and Description |
---|---|
T |
createView(ModelElement base)
Create the view for a given element.
|
T |
getExistingView(ModelElement base)
Get the existing view for a given element.
|
java.lang.String |
getId()
Get the unique identifier of a model view template.
|
ModelElement |
getMainElement(T view)
Get the base element the view was created from.
|
ModelElement |
resolveOrigin(ModelElement base)
Get the composition owner that this creator would use to create a view for main element base.
|
void |
updateView(T existingView)
Update a view for the given element.
|
java.lang.String getId()
T createView(ModelElement base)
base
- The element used by the creator to create the view. Depending on the creator behavior this element can simply be the composition parent of the created diagram or be interpreted differently (example subject of the diagram).T getExistingView(ModelElement base)
createView(ModelElement)
base
- The element to look a view for.void updateView(T existingView)
existingView
- the view to be updated. Must be the one returned by getExistingView(ModelElement)
.ModelElement resolveOrigin(ModelElement base)
base
- the base elementModelElement getMainElement(T view)
getExistingView(ModelElement)
.view
- a MObject representing a view.