Sha256: fa092a0b740d8aaeb70d23e8e7a677322cd4d052329d2a02dd021b675c304727

Contents?: true

Size: 1.88 KB

Versions: 32

Compression:

Stored size: 1.88 KB

Contents

{% assign is_klass_spare = klass.name | slice: 0,5 %}
{% if is_klass_spare == 'old: ' %}{% continue %}
{% elsif is_klass_spare == 'Spare' %}{% continue %}
{% endif %}
{% assign klass_name = klass.name | downcase | replace: ':', '' | replace: ' ', '_' %}
[[section-{{ klass.xmi_id }}]]
.Definition table of “{{ package.name }}::{{ klass.name }}” ({{ klass.stereotype }})
[width="100%",cols="a,a,a,a,a,a,a,a"]
|===

h|Name: 7+| {{ klass.name }}

h|Definition: 7+| {{ klass.definition | html2adoc }}

h|Stereotype: 7+| {{ klass.stereotype | default: 'interface' }}

{% assign inherited = klass.associations | where: "member_end_type", "inheritance" %}
{% if inherited.size > 0 %}
h|Inheritance from: 7+| {{ inherited | map: 'member_end' | join: ", " }}
{% endif %}

{% assign generalizations = klass.associations | where: "member_end_type", "generalization" %}
{% if generalizations.size > 0 %}
h|Generalization of: 7+| {{ generalizations | map: 'member_end' | join: ", " }}
{% endif %}

h|Abstract: 7+| {% if klass.is_abstract %}True{% else %}False{% endif %}
{% assign aggregations = klass.associations | where: "member_end_type", "aggregation" %}
{% if aggregations.size > 0 %}
.{{aggregations.size | plus: 1}}+h|Associations:
4+| _Association with_
| _Obligation_
| _Maximum occurrence_
| _Provides_

{% for assoc in aggregations %}
4+| {{assoc.member_end}}
| {% if assoc.member_end_cardinality %}{{ assoc.member_end_cardinality.min }}{% endif %}
| {% if assoc.member_end_cardinality %}{{ assoc.member_end_cardinality.max }}{% endif %}
| {{ assoc.member_end_attribute_name }}

{% endfor %}
{% else %}
h| Associations: 7+| (none)
{% endif %}

{% if klass.attributes.size > 0 %}
.{{klass.attributes.size | plus: 1}}+h| Values:
| _Name_
6+| _Definition_

{% for value in klass.attributes %}
| {{value.name}}
6+| {{ value.definition | html2adoc }}

{% endfor %}
{% else %}
h| Values:
7+| (none)
{% endif %}

|===

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
metanorma-plugin-lutaml-0.4.20 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.19 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.18.2 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.18.1 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.18 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.17 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.15 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.14 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.13 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.12 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.11 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid
metanorma-plugin-lutaml-0.4.10 lib/metanorma/plugin/lutaml/liquid_templates/_packages_data_type.liquid