Text2UML: conversion of arbitrary textual DSLs
I followed the online tutorial and I have the impression that Text2UML can convert only models that respect a specific grammar whose terminology is quite close to UML class diagrams. Is Text2UML fixed to that specific grammer? Or does Text2UML support the conversion of any grammer specified with Xtext. Here is an example:
textual DSL grammer (taken from a Java Magazine):
-------------------------------------------------------------------
MyModel:
(types+=Type)*;
Type:
BusinessObject | Datatype;
BusinessObject:
"bo" name=ID "{"
(properties+=Property)*
"}";
Property:
type=TypeRef name=ID;
TypeRef:
name=[Type|ID](multi?="[]")?;
An example Model (taken from a Java Magazine):
-------------------------------------------------------------------
bo Person {
String name
Address address
Order[] orders
PhoneNumber[] phones
}
Cheers,
Martin