IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.ras.impord.data
Interface IImportDataModel

All Superinterfaces:
IDataModel

public interface IImportDataModel
extends IDataModel

This interface holds all the data needed to import a RAS asset. It represents the model part of the model-view-controller implementation of the RAS import service. Although it can be, it's not intended to be implemented by clients. Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability.


Field Summary
 
Fields inherited from interface com.ibm.xtools.ras.core.data.IDataModel
NULL
 
Method Summary
 void close()
          Closes and releases all resources being held by the data model.
 Asset getAsset(IProgressMonitor progressMonitor)
          Retrieve the Asset for this data model.
 String getAssetPath()
          Retrieve the asset path set by setAssetPath.
 IRelatedAssetManager getRelatedAssetManager(IProgressMonitor progressMonitor)
          Retrieve the IRelatedAssetManager associated with the Asset for this data model.
 void setAssetPath(String assetPath)
          Set the asset file path for the import data model.
 
Methods inherited from interface com.ibm.xtools.ras.core.data.IDataModel
addDataModelListener, containsProperty, getProperty, getPropertyAsBoolean, getPropertyAsInteger, getPropertyAsString, registerValidator, removeDataModelListener, removeProperty, setProperty, setProperty, setProperty, unregisterValidator, validateAll, validateProperty
 

Method Detail

setAssetPath

public void setAssetPath(String assetPath)
Set the asset file path for the import data model.

Parameters:
assetPath - the asset file path to the asset being imported.
Throws:
IllegalArgumentException - if assetPath is null

getAssetPath

public String getAssetPath()
Retrieve the asset path set by setAssetPath.

Returns:
the asset path or null if it doesn't exist.

getAsset

public Asset getAsset(IProgressMonitor progressMonitor)
Retrieve the Asset for this data model.

Parameters:
progressMonitor - to monitor progress of getting the asset. getAsset() could be long running if a large asset is being retrieved the first time.
Returns:
asset.

getRelatedAssetManager

public IRelatedAssetManager getRelatedAssetManager(IProgressMonitor progressMonitor)
Retrieve the IRelatedAssetManager associated with the Asset for this data model.

Parameters:
progressMonitor - to monitor progress of getting the related asset manager for this asset. getRelatedAssetManager could be long running especially the first time it is invoked on large assets.
Returns:
the related asset manager for the the asset in the data model.

close

public void close()
Closes and releases all resources being held by the data model.


IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.