pl.edu.agh.cast.importer.wizard.util
Class MockModelPluginRegistryProvider

java.lang.Object
  extended by pl.edu.agh.cast.importer.wizard.util.MockModelPluginRegistryProvider
All Implemented Interfaces:
IModelPluginRegistryProvider

public class MockModelPluginRegistryProvider
extends Object
implements IModelPluginRegistryProvider

Model plugin registry provider for test use only.

Author:
AGH CAST Team

Constructor Summary
MockModelPluginRegistryProvider()
          The default constructor.
 
Method Summary
 ModelColumn[] getModelColumns(String modelExtensionId)
          Returns table of ModelColumn for model with id = modelExtensionId.
 List<ModelInfo> getModelInfos()
          Returns the list of information about all available domain models.
 String getModelName(String modelId)
          Retrieves name of domain model with a given extension identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockModelPluginRegistryProvider

public MockModelPluginRegistryProvider()
The default constructor.

Method Detail

getModelColumns

public ModelColumn[] getModelColumns(String modelExtensionId)
Returns table of ModelColumn for model with id = modelExtensionId. Each model column is placed at modelIndex index in result table.

Specified by:
getModelColumns in interface IModelPluginRegistryProvider
Parameters:
modelExtensionId - Id of model extension.
Returns:
Table of model columns for model with input id.
See Also:
IModelPluginRegistryProvider.getModelColumns(java.lang.String)

getModelInfos

public List<ModelInfo> getModelInfos()
                              throws org.eclipse.core.runtime.CoreException
Returns the list of information about all available domain models.

Specified by:
getModelInfos in interface IModelPluginRegistryProvider
Returns:
list of model information
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IModelPluginRegistryProvider.getModelInfos()

getModelName

public String getModelName(String modelId)
                    throws org.eclipse.core.runtime.CoreException
Retrieves name of domain model with a given extension identifier.

Specified by:
getModelName in interface IModelPluginRegistryProvider
Parameters:
modelId - The id of the model extension (defined in the plugin.xml file)
Returns:
the name of the model
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IModelPluginRegistryProvider.getModelName(java.lang.String)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.