-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve instance generator to output Locatable.archetype_details fiel…
…d properly.
- Loading branch information
1 parent
c968e58
commit 8ac430e
Showing
5 changed files
with
208 additions
and
39 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
115 changes: 115 additions & 0 deletions
115
libraries/openehr/src/am/archetype/constraint_model/dt_object_node_modifier.e
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,115 @@ | ||
note | ||
component: "ADL Workbench data synthesiser" | ||
description: "Change IM type names to mixed snake-case" | ||
keywords: "visitor, Data Tree" | ||
author: "Thomas Beale" | ||
support: "Graphite Health <http://graphitehealth.io>" | ||
copyright: "Copyright (c) 2024 S2health.org" | ||
license: "Apache 2.0 License <http://www.apache.org/licenses/LICENSE-2.0.html>" | ||
|
||
class DT_OBJECT_NODE_MODIFIER | ||
|
||
inherit | ||
DT_VISITOR | ||
|
||
create | ||
make | ||
|
||
feature -- Initialisation | ||
|
||
make (an_agent: like modifier_agent) | ||
do | ||
modifier_agent := an_agent | ||
end | ||
|
||
feature -- Visitor | ||
|
||
start_complex_object_node (a_node: DT_COMPLEX_OBJECT; depth: INTEGER) | ||
-- start serialising an DT_COMPLEX_OBJECT_NODE | ||
do | ||
modifier_agent.call ([a_node]) | ||
end | ||
|
||
end_complex_object_node (a_node: DT_COMPLEX_OBJECT; depth: INTEGER) | ||
-- end serialising an DT_COMPLEX_OBJECT_NODE | ||
do | ||
end | ||
|
||
start_attribute_node (a_node: DT_ATTRIBUTE; depth: INTEGER) | ||
-- start serialising an DT_ATTRIBUTE_NODE | ||
do | ||
end | ||
|
||
end_attribute_node (a_node: DT_ATTRIBUTE; depth: INTEGER) | ||
-- end serialising an DT_ATTRIBUTE_NODE | ||
do | ||
end | ||
|
||
start_primitive_object (a_node: DT_PRIMITIVE_OBJECT; depth: INTEGER) | ||
-- start serialising a DT_OBJECT_SIMPLE | ||
do | ||
end | ||
|
||
end_primitive_object (a_node: DT_PRIMITIVE_OBJECT; depth: INTEGER) | ||
-- end serialising a DT_OBJECT_SIMPLE | ||
do | ||
end | ||
|
||
start_primitive_object_list (a_node: DT_PRIMITIVE_OBJECT_LIST; depth: INTEGER) | ||
-- start serialising an DT_OBJECT_SIMPLE_LIST | ||
do | ||
end | ||
|
||
end_primitive_object_list (a_node: DT_PRIMITIVE_OBJECT_LIST; depth: INTEGER) | ||
-- end serialising an DT_OBJECT_SIMPLE_LIST | ||
do | ||
end | ||
|
||
start_primitive_object_interval (a_node: DT_PRIMITIVE_OBJECT_INTERVAL; depth: INTEGER) | ||
-- start serialising a DT_OBJECT_SIMPLE | ||
do | ||
end | ||
|
||
end_primitive_object_interval (a_node: DT_PRIMITIVE_OBJECT_INTERVAL; depth: INTEGER) | ||
-- end serialising a DT_OBJECT_SIMPLE | ||
do | ||
end | ||
|
||
start_primitive_object_interval_list (a_node: DT_PRIMITIVE_OBJECT_INTERVAL_LIST; depth: INTEGER) | ||
-- start serialising a DT_OBJECT_SIMPLE | ||
do | ||
end | ||
|
||
end_primitive_object_interval_list (a_node: DT_PRIMITIVE_OBJECT_INTERVAL_LIST; depth: INTEGER) | ||
-- end serialising a DT_OBJECT_SIMPLE | ||
do | ||
end | ||
|
||
start_object_reference (a_node: DT_OBJECT_REFERENCE; depth: INTEGER) | ||
-- start serialising a DT_OBJECT_REFERENCE | ||
do | ||
end | ||
|
||
end_object_reference (a_node: DT_OBJECT_REFERENCE; depth: INTEGER) | ||
-- end serialising a DT_OBJECT_REFERENCE | ||
do | ||
end | ||
|
||
start_object_reference_list (a_node: DT_OBJECT_REFERENCE_LIST; depth: INTEGER) | ||
-- start serialising a DT_OBJECT_REFERENCE_LIST | ||
do | ||
end | ||
|
||
end_object_reference_list (a_node: DT_OBJECT_REFERENCE_LIST; depth: INTEGER) | ||
-- end serialising a DT_OBJECT_REFERENCE_LIST | ||
do | ||
end | ||
|
||
feature {NONE} -- Implementation | ||
|
||
modifier_agent: PROCEDURE [ANY, TUPLE[DT_OBJECT_ITEM]] | ||
|
||
end | ||
|
||
|
||
|
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
Oops, something went wrong.