org.eclipse.cosmos.rm.repository.internal.operations
Class FileImportOperation
java.lang.Object
org.eclipse.cosmos.rm.repository.internal.operations.AbstractListenerManager
org.eclipse.cosmos.rm.repository.internal.operations.AbstractSMLOperation
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:
- A
String indicating the path of the SML-IF document being imported (required)
- A
String indicating the path of the target directory (required)
- A
Boolean set to true to overwrite files without any notification (optional -
false by default)
- 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)
| 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 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 |
FileImportOperation
public FileImportOperation(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository)
- Constructor
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()