From 64a7d3d84b8b441ff070584d4e552cb3fb7802ef Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Tue, 28 Oct 2025 19:49:20 -0400 Subject: [PATCH] implement `Person Name@get Full Name` and use that as the instance labeler for `Person Name` class --- .../003-Classes/00402-PersonName.yaml | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/003-Classes/00402-PersonName.yaml b/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/003-Classes/00402-PersonName.yaml index 90257f0..dd0fa59 100644 --- a/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/003-Classes/00402-PersonName.yaml +++ b/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/003-Classes/00402-PersonName.yaml @@ -1,3 +1,13 @@ +- entityDefinitions: + - IDMB_Person_Name__get__Full_Name: '{75368890-4f3b-41d1-a8c8-74c992fe3c63}' + - IDM_Person_Name__get__Full_Name: '{24ec3d7b-52d6-4d3f-bb09-9a1567f80c7f}' + + # {179d667e-299f-4931-8214-fdc32e87b064} + # {fa79e97e-a90f-4b8f-ab4e-5155e35976b6} + + # {2f68f649-9522-487e-8423-7c3e197ab02d} + # {2611f7c5-c2cf-4d9c-a6da-328ad211d36b} + - library: '&IDL_MochaBaseSystem;' instances: - class: '&IDC_PersonName;' @@ -5,8 +15,28 @@ index: 402 customTagName: 'personName' registerForTemplate: yes + instancesLabeledByRAMB: '&IDMB_Person_Name__get__Full_Name;' attributes: - instance: '&IDA_GivenName;' customTagName: 'givenName' - instance: '&IDA_FamilyName;' - customTagName: 'familyName' \ No newline at end of file + customTagName: 'familyName' + + - returnAttributeMethodBinding: '&IDMB_Person_Name__get__Full_Name;' + executesMethod: '&IDM_Person_Name__get__Full_Name;' + + - buildAttributeMethod: '&IDM_Person_Name__get__Full_Name;' + forClassId: '&IDC_PersonName;' + verb: 'get' + name: 'Full Name' + accessModifierId: '&IDI_AccessModifier_Public;' + initialValue: '' + returnsAttributeId: '&IDA_Value;' + buildsWithAttributes: + - order: a + executes: '&IDMB_Person_Name__get__Given_Name;' + - order: b + executes: '&IDMB_Common_Text__get__Single_Space;' + - order: c + executes: '&IDMB_Person_Name__get__Family_Name;' #@ + \ No newline at end of file