nodemda-nodeuml
Version:
NodeMDA meta model reader for NodeUML
40 lines (30 loc) • 1.03 kB
Markdown
This package defines a "reader" object for [NodeMDA](https://github.com/joelkoz/NodeMDA). It reads the data file of the [NodeUML diagraming tool](https://marketplace.visualstudio.com/items?itemName=joelkoz.nodeuml) and produces
and object graph of NodeMDA meta elements represented by that file.
The object graph returned by this reader will be a single `NodeMDA.Meta.Model` object.
It will be the Javascript equivalent of the following Typescript definition:
```
class Model {
public name: String; // The project name
public datatypes: NodeMDA.Meta.Datatype[];
public stereotypes: NodeMDA.Meta.Stereotype[];
public actors: NodeMDA.Meta.Actor[];
public classes: NodeMDA.Meta.Class[];
}
```
This reader understands and populates the `model` instance with these UML elements:
* Package
* Datatype
* Stereotype
* Tag values
* Class
- Attribute
- Operation
- Parameter
* Generalization
* Dependency
* Association
* Actor