eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[text] Introduce powerful string manipulation e.g MtoT primitives #1393

Open eclipse-ocl-bot opened 2 hours ago

eclipse-ocl-bot commented 2 hours ago

| --- | --- | | Bugzilla Link | 449138 | | Status | NEW | | Importance | P3 enhancement | | Reported | Oct 29, 2014 03:27 EDT | | Modified | May 11, 2018 07:21 EDT | | Version | 5.0.0 | | Depends on | 534575 | | Blocks | 396543 | | Reporter | Ed Willink |

Description

From Bug 396543:

If QVTo had powerful string capabilities, why not QVTr too? Is MtoT incompatible with declarative? no a complex side effect free string concatenation can be done in parallel, and even in the wrong order so long as the final concatenation is correctly ordered. So the suggestion for QVTo should be equally applicable to QVTr. So why not OCL? why not? it's just a specialized form of side-effect free data manipulation. Just needs an escape operator to embed an OCL query within a multi-line string and perhaps some richer 'separator' syntax.

eclipse-ocl-bot commented 2 hours ago

By Ed Willink on May 11, 2018 07:21

Bug 534575 introduces a structured String Text Resource that enables any M2M to do M2T. String template functionality provides syntax sugar to facilitate creation of the StringNode tree.