-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the plugins lutaml_ea_xmi and lutaml_klass_table to allow user…
… to display guidance information
- Loading branch information
Showing
23 changed files
with
127,152 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
== Test | ||
|
||
My content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
classes: | ||
- name: Building | ||
attributes: | ||
- name: gml:boundedBy | ||
used: false | ||
guidance: | | ||
この属性は使用されていません。 | ||
- name: core:relativeToTerrain | ||
used: false | ||
guidance: | | ||
この属性は使用されていません。 | ||
- name: core:relativeToWater | ||
used: false | ||
guidance: | | ||
この属性は使用されていません。 | ||
- name: bldg:function | ||
used: false | ||
guidance: | | ||
この属性は使用されていません。 | ||
- name: bldg:storeyHeightsAboveGround | ||
used: false | ||
guidance: | | ||
この属性は使用されていません。 | ||
- name: bldg:storeyHeightsBelowGround | ||
used: false | ||
guidance: | | ||
この属性は使用されていません。 | ||
- name: bldg:lod2MultiSurface | ||
used: false | ||
guidance: | | ||
この関連役割は使用されていません。 | ||
- name: bldg:lod3MultiSurface | ||
used: false | ||
guidance: | | ||
この関連役割は使用されていません。 | ||
- name: BuildingPart | ||
attributes: | ||
- name: gml:boundedBy | ||
used: false | ||
guidance: | | ||
この属性は使用されていません。 | ||
- name: core:relativeToTerrain | ||
used: false | ||
guidance: | | ||
この属性は使用されていません。 | ||
- name: core:relativeToWater | ||
used: false | ||
guidance: | | ||
この属性は使用されていません。 | ||
- name: bldg:function | ||
used: false | ||
guidance: | | ||
この関連役割は使用されていません。 | ||
- name: bldg:storeyHeightsAboveGround | ||
used: false | ||
guidance: | | ||
この関連役割は使用されていません。 |
11 changes: 11 additions & 0 deletions
11
spec/fixtures/lutaml/liquid_templates_guidance/_diagrams_block.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{ text }} | ||
|
||
{% for diagram in package.diagrams %} | ||
[[figure-{{ diagram.xmi_id }}]] | ||
.{{ diagram.name }} | ||
image::{{ image_base_path }}/{{ diagram.xmi_id }}.{{ format | default: 'png' }}[] | ||
|
||
{% if diagram.definition %} | ||
{{ diagram.definition | html2adoc }} | ||
{% endif %} | ||
{% endfor %} |
83 changes: 83 additions & 0 deletions
83
spec/fixtures/lutaml/liquid_templates_guidance/_klass_table.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{% assign root = klass.generalization %} | ||
|
||
{%- capture upper_klass_name -%} | ||
{{ root.general.upper_klass }}:{{ root.general.name }} | ||
{%- endcapture -%} | ||
{%- if upper_klass_name == ":" -%} | ||
{%- assign upper_klass_name = "-" -%} | ||
{%- endif -%} | ||
{%- capture stereotype -%}<< {{ root.stereotype }} >>{%- endcapture -%} | ||
{%- if stereotype == "<< >>" -%} | ||
{%- assign stereotype = " " -%} | ||
{%- endif -%} | ||
|
||
[cols="1a,1a,2a,1a,1a"] | ||
|=== | ||
| Definition of Type 4+| {{ root.definition }} | ||
h| Upper Type 4+| {{ upper_klass_name }} | ||
h| Stereotype 4+| {{ stereotype }} | ||
|
||
5+h| Inherited Properties | ||
h| Property Name h| Property Type and Multiplicity h| Definition h| Used h| Guidance | ||
{% for attr in root.inherited_props %} | ||
{%- if attr.has_association? == false -%} | ||
{%- capture name_col -%} | ||
{{ attr.name_ns }}:{{ attr.name }} | ||
({{ attr.gen_name }}) | ||
{%- endcapture -%} | ||
| {{ name_col | newline_to_br }} | ||
| {{ attr.type }} [{{ attr.cardinality.min }}..{{ attr.cardinality.max }}] | ||
| {{ attr.definition }} | ||
| {{ attr.used? }} | ||
| {{ attr.guidance }} | ||
{%- endif -%} | ||
{% endfor %} | ||
|
||
5+h| Self-defined Properties | ||
h| Property Name h| Property Type and Multiplicity h| Definition h| Used h| Guidance | ||
{% for attr in root.owned_props %} | ||
{%- if attr.has_association? == false -%} | ||
{%- capture name_col -%} | ||
{{ attr.name_ns }}:{{ attr.name }} | ||
({{ attr.gen_name }}) | ||
{%- endcapture -%} | ||
| {{ name_col | newline_to_br }} | ||
| {{ attr.type }} [{{ attr.cardinality.min }}..{{ attr.cardinality.max }}] | ||
| {{ attr.definition }} | ||
| {{ attr.used? }} | ||
| {{ attr.guidance }} | ||
{%- endif -%} | ||
{% endfor %} | ||
|
||
5+h| Properties Inherited from Association | ||
h| Property Name h| Property Type and Multiplicity h| Definition h| Used h| Guidance | ||
{% for attr in root.inherited_assoc_props %} | ||
{%- if attr.has_association? == true -%} | ||
{%- capture name_col -%} | ||
{{ attr.name_ns }}:{{ attr.name }} | ||
({{ attr.gen_name }}) | ||
{%- endcapture -%} | ||
| {{ name_col | newline_to_br }} | ||
| {{ attr.type_ns }}:{{ attr.type }} [{{ attr.cardinality.min }}..{{ attr.cardinality.max }}] | ||
| {{ attr.definition }} | ||
| {{ attr.used? }} | ||
| {{ attr.guidance }} | ||
{%- endif -%} | ||
{% endfor %} | ||
|
||
5+h| Properties Defined in Association | ||
h| Property Name h| Property Type and Multiplicity h| Definition h| Used h| Guidance | ||
{% for attr in root.assoc_props %} | ||
{%- if attr.has_association? == true -%} | ||
{%- capture name_col -%} | ||
{{ attr.name_ns }}:{{ attr.name }} | ||
({{ attr.gen_name }}) | ||
{%- endcapture -%} | ||
| {{ name_col | newline_to_br }} | ||
| {{ attr.type_ns }}:{{ attr.type }} [{{ attr.cardinality.min }}..{{ attr.cardinality.max }}] | ||
| {{ attr.definition }} | ||
| {{ attr.used? }} | ||
| {{ attr.guidance }} | ||
{%- endif -%} | ||
{% endfor %} | ||
|=== |
Oops, something went wrong.