COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.repository.internal.operations
Class ImportOperation

java.lang.Object
  extended by org.eclipse.cosmos.rm.repository.internal.operations.ImportOperation

public class ImportOperation
extends java.lang.Object

Import model structure from an SML-IF file.


Constructor Summary
ImportOperation(FileSystemSMLRepository repository)
          Constructor
 
Method Summary
 void importFromFileSystemFile(java.lang.String resource, java.lang.String destination)
          Import a SML-IF file into the work space, creating files and model structure for definition and instance documents, and also capturing extra meta-data in a separate file (hidden from user, but preserved for future exports).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportOperation

public ImportOperation(FileSystemSMLRepository repository)
Constructor

Parameters:
repository - The repository
Method Detail

importFromFileSystemFile

public void importFromFileSystemFile(java.lang.String resource,
                                     java.lang.String destination)
                              throws org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException
Import a SML-IF file into the work space, creating files and model structure for definition and instance documents, and also capturing extra meta-data in a separate file (hidden from user, but preserved for future exports).

Parameters:
resource - Name of an SML-IF file to be imported. Expected to be absolute path on file system.
destination - Name of output directory. Expected to be relative to the workspace.
Throws:
ImportException
org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException

COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification