View
A view is an OntoUML element that represents a single occurrence of a model element in a diagram. A view connects a model element to the shapes needed to draw it — for example, an n-ary relation view connects one relation to a diamond and a set of paths. Multiple views can represent multiple occurrences of the same element, whether in one diagram or across several.
A view is responsible for what portions of a model element are shown (for example, whether a property's cardinality is displayed), while a shape is responsible for how the drawing is rendered (its position and dimensions).
View is abstract: it is never serialized on its own. Every serialized object is one of the
concrete subtypes below, distinguished by its type discriminator.
| Property | Type | Description |
|---|---|---|
isViewOf | id | The model element that the view represents in the diagram. |
Every view also carries the identity properties
(id, created, modified). Being views rather than
named elements, they do not carry descriptive properties such
as name or description.
The concrete view types fall into two families:
- Rectangular-region views, backed by a box or label shape:
ClassView,PackageView,NoteView,GeneralizationSetView, andNaryRelationView. - Binary connector views, drawn as a line between two other
views:
BinaryRelationView,GeneralizationView, andAnchorView.