|Obtaining the text value of a FeatureMap entry [message #1787549]
||Mon, 28 May 2018 16:21
| James Clark
Registered: December 2016
I am writing a Batch-mode Validator for a BPMN model in Rational Software Architect. Specifically, I'm checking for the existence and format of a specific "Tag" assigned to the Definitions node of a BPMN model. Here is what the Tags look like in this fragment of the model (they are implemented as the extensionElements node).|
extensionElements are implemented via a FeatureMap. I don't have a good enough understanding of FeatureMaps to be able to obtain the text such as that in the model fragment attached ( "BPM2363"), which I would like my validator to check for its existence and format.
Here is a dump of the FeatureMap:
tagging:tag=org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl@c9d139db (mixed: [ecore.xml.type:text=To-Be], anyAttribute: null),
tagging:tag=org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl@8acc1d9d (mixed: [ecore.xml.type:text=BPM2363], anyAttribute: null),
tagging:tag=org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl@169b852c (mixed: [ecore.xml.type:text=Order:1], anyAttribute: null)
Attached is the validate code which needs to be corrected to properly obtain the raw text value of a FeatureMap entry (such as "BPM2363"). Can you please direct me to the proper API to obtain the raw text value? Thanks in advance for any help you could provide!
Powered by FUDForum
. Page generated in 0.01773 seconds