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

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

java.lang.Object
  extended by org.eclipse.cosmos.rm.repository.internal.operations.AbstractListenerManager
      extended by org.eclipse.cosmos.rm.repository.internal.operations.AbstractSMLOperation
          extended by org.eclipse.cosmos.rm.repository.internal.operations.FileImportOperation
All Implemented Interfaces:
org.eclipse.cosmos.rm.repository.provisional.operations.ISMLImportOperation, org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation

public class FileImportOperation
extends AbstractSMLOperation
implements org.eclipse.cosmos.rm.repository.provisional.operations.ISMLImportOperation

The implementation of the import operation. This operation accepts the following arguments in the order listed below:

  1. A String indicating the path of the SML-IF document being imported (required)
  2. A String indicating the path of the target directory (required)
  3. A Boolean set to true to overwrite files without any notification (optional - false by default)
  4. A Boolean set to true to create any structure needed as part of the import operation or false not to create the structure (optional - true by default)


Field Summary
 
Fields inherited from interface org.eclipse.cosmos.rm.repository.provisional.operations.ISMLImportOperation
ID
 
Constructor Summary
FileImportOperation(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository)
          Constructor
 
Method Summary
 java.lang.String getId()
          Returns the unique ID of this operation.
 void run()
          Executes this operation.
 
Methods inherited from class org.eclipse.cosmos.rm.repository.internal.operations.AbstractSMLOperation
addArgument, checkType, checkType, checkType, getArguments, getRepository, setArguments, setRepository
 
Methods inherited from class org.eclipse.cosmos.rm.repository.internal.operations.AbstractListenerManager
addProgressListener, getProgressListeners, removeProgressListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation
addArgument, addProgressListener, removeProgressListener, setArguments
 

Constructor Detail

FileImportOperation

public FileImportOperation(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository)
Constructor

Method Detail

getId

public java.lang.String getId()
Description copied from interface: org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation
Returns the unique ID of this operation. The ID is expected to be unique amongst the supported operations of a repository

Specified by:
getId in interface org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation
Returns:
The unique ID of this operation
See Also:
ISMLOperation.getId()

run

public void run()
         throws org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException
Description copied from interface: org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation
Executes this operation.

Specified by:
run in interface org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation
Throws:
org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException - In case of any error
See Also:
ISMLOperation.run()

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