Package org.xilaew.atg.model.activityTestCaseGraph.util

Examples of org.xilaew.atg.model.activityTestCaseGraph.util.ActivityTestCaseGraphResourceFactoryImpl


    out("ModelName: " + model.getName()); //$NON-NLS-1$

    // select one activity
    Activity activity = selectActivity(model);

    ActivityTestCaseGraphResourceFactoryImpl resFactory = new ActivityTestCaseGraphResourceFactoryImpl();
    Resource res = resFactory.createResource(URI.createFileURI(outFile));
    try {
      TCGActivity tcgActivity = UML2TCGActivity.transform(activity);
      ActTCGContinuityHelper.addContinuityConstraints(tcgActivity);
      res.getContents().add(tcgActivity);
    } catch (YouShallNotDoThisException e2) {
View Full Code Here


    String amplRun = Paths2AMPLRun.transform(paths, tcgActivity,
        "PluginOutput");

    // Output everything into the Files
    try {
      ActivityTestCaseGraphResourceFactoryImpl resFactory = new ActivityTestCaseGraphResourceFactoryImpl();
      Resource res = resFactory.createResource(URI.createFileURI(actTCGFile.getLocationURI().getPath()));
      res.getContents().add(tcgActivity);
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      res.save(out, null);
      actTCGFile.create(new ByteArrayInputStream(out.toByteArray()),
          false, null);
View Full Code Here

  public static void main(String[] args) {
    readCmdArgs(args);
    RESOURCE_SET.getPackageRegistry().put(
        "http://org.xilaew.atg.model.activityTestCaseGraph",
        ActivityTestCaseGraphPackage.eINSTANCE);
    ActivityTestCaseGraphResourceFactoryImpl tcgResourceFactory = new ActivityTestCaseGraphResourceFactoryImpl();
    Resource res = tcgResourceFactory.createResource(URI
        .createFileURI(inFile));
    try {
      res.load(null);
    } catch (IOException e) {
      e.printStackTrace();
View Full Code Here

public class TCG2AMPLConverterTool extends AbstractTool{

  public static void main(String[] args) {
    readCmdArgs(args);
    RESOURCE_SET.getPackageRegistry().put("http://org.xilaew.atg.model.activityTestCaseGraph", ActivityTestCaseGraphPackage.eINSTANCE );
    ActivityTestCaseGraphResourceFactoryImpl tcgResourceFactory = new ActivityTestCaseGraphResourceFactoryImpl();
    Resource res = tcgResourceFactory.createResource(URI.createFileURI(inFile));
    try {
      res.load(null);
    } catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.xilaew.atg.model.activityTestCaseGraph.util.ActivityTestCaseGraphResourceFactoryImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.