Package org.openiaml.model.migrate

Examples of org.openiaml.model.migrate.MigrationController


    targetModel = getProject().getFile(getModelMigrated());
    targetDiagram = getProject().getFile(getDiagram());

    // migrate the model
    assertFalse("the target model should not exist yet", targetModel.exists());
    MigrationController a = new MigrationController();
    IStatus status = a.migrateModel(sourceModel, targetModel, new NullProgressMonitor());
    assertStatusOK(status);
    assertTrue("the target model should have been created", targetModel.exists());

    // return list of migrators used
    return a.getMigratorsUsed();
  }
View Full Code Here


        sourceModel);
    targetModel = getProject().getFile(getModelMigrated());

    // migrate the model
    assertFalse("the target model should not exist yet", targetModel.exists());
    MigrationController a = new MigrationController();
    IStatus status = a.migrateModel(sourceModel, targetModel, new NullProgressMonitor());
    assertStatusOK(status);
    assertTrue("the target model should have been created", targetModel.exists());

    // return list of migrators used
    return a.getMigratorsUsed();
  }
View Full Code Here

   * @param monitor
   * @return
   */
  public IStatus migrateModel(IFile source, IFile target,
      IProgressMonitor monitor) {
    MigrationController mc = new MigrationController();
    return mc.migrateModel(source, target, monitor);
  }
View Full Code Here

TOP

Related Classes of org.openiaml.model.migrate.MigrationController

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.