Commits (2)
......@@ -23,6 +23,8 @@ import org.eclipse.xtext.resource.XtextResource;
import org.eclipse.xtext.resource.XtextResourceSet;
import org.etsi.mts.tdl.TDLan2StandaloneSetup;
import org.etsi.mts.tdl.TDLtxStandaloneSetup;
import org.etsi.mts.tdl.TDLtxiStandaloneSetup;
import org.etsi.mts.tdl.TPLan2StandaloneSetup;
import org.etsi.mts.tdl.impl.tdlPackageImpl;
import org.etsi.mts.tdl.structuredobjectives.impl.StructuredObjectivesPackageImpl;
......@@ -131,7 +133,8 @@ public class TDLHelper {
public static XtextResourceSet getNewResourceSet() {
new org.eclipse.emf.mwe.utils.StandaloneSetup().setPlatformUri("./");
injector = new TDLan2StandaloneSetup().createInjectorAndDoEMFRegistration();
// injector = new TPLan2StandaloneSetup().createInjectorAndDoEMFRegistration();
injector = new TPLan2StandaloneSetup().createInjectorAndDoEMFRegistration();
injector = new TDLtxiStandaloneSetup().createInjectorAndDoEMFRegistration();
//TODO: can this be configurable? or does it preclude tdlan2 from being loaded?
injector = new TDLtxStandaloneSetup().createInjectorAndDoEMFRegistration();
XtextResourceSet resourceSet = injector.getInstance(XtextResourceSet.class);
......
# TDL Standalone Launcher
This project shows how to use TDL in standalone (batch) mode. It includes example code and launcher to illustrate how to process TDL specifications. The launcher currently can list elements in a TDL specification, validate the specification using the TDL OCL constraints, or import data defintions from an OpenAPI or ASN.1 specification. Each functionality relies on different components of the TDL Open-source Project.
The standalone launcher can load TDL specifications in the standardised (XMI-based) exchange format (`.tdl`) or in the textual syntaxes (both standardised `.tdltx` and `.tdltxi` aind informative example syntaxes `.tdlan2` / `.tplan2`). Translation between the different formats is also illustrated, but not stable yet.