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

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

public class MockImporterPluginRegistryProvider
extends Object
implements IImporterPluginRegistryProvider

Importer plugin registry provider for test use only.

Author:
AGH CAST Team

Constructor Summary
MockImporterPluginRegistryProvider()
          The default constructor.
 
Method Summary
 String getConversionRuleDescription(String ruleId)
          Retrieves description of conversion rule with a given extension identifier.
 List<ConversionRuleInfo> getConversionRuleInfos()
          Returns the list of information about all available conversion rules.
 IConversionRule getConversionRuleInstance(String conversionRuleId)
          Returns the conversion rule for model with given extension identifier.
 String getConversionRuleName(String ruleId)
          Retrieves name of conversion rule with a given extension identifier.
 String getConverterDescription(String converterId)
          Retrieves description of converter with a given extension identifier.
 List<ImportConverterInfo> getConverterInfos()
          Returns the list of information about all available converters.
 IImportConverter getConverterInstance(String converterId)
          Returns the converter for model with given extension identifier.
 List<DataTypeInfo> getDataTypeInfos()
          Returns the list of information about all available data types.
 String getModelName(String modelId)
          
 Map<String,String> getSupportedFileExtensions()
          Retrieves all file extensions supported by all tokenizers, mapped to their tokenizer's identifiers.
 String getTokenizerDescription(String tokenizerId)
          Retrieves description of tokenizer with a given extension identifier.
 List<TokenizerInfo> getTokenizerInfos()
          Returns the list of information about all available tokenizers.
 IImportTokenizer getTokenizerInstance(String tokenizerId)
          Returns the tokenizer for model with given extension identifier.
 String getTokenizerName(String tokenizerId)
          Retrieves name of tokenizer 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

MockImporterPluginRegistryProvider

public MockImporterPluginRegistryProvider()
The default constructor.

Method Detail

getConversionRuleDescription

public String getConversionRuleDescription(String ruleId)
Retrieves description of conversion rule with a given extension identifier.

Specified by:
getConversionRuleDescription in interface IImporterPluginRegistryProvider
Parameters:
ruleId - The id of the conversion rule extension (defined in the plugin.xml file)
Returns:
the description of the conversion rule
See Also:
getConversionRuleDescription(java.lang.String)

getConversionRuleInstance

public IConversionRule getConversionRuleInstance(String conversionRuleId)
                                          throws org.eclipse.core.runtime.CoreException
Returns the conversion rule for model with given extension identifier.

Specified by:
getConversionRuleInstance in interface IImporterPluginRegistryProvider
Parameters:
conversionRuleId - the id of the conversion rule extension (defined in the plugin.xml file)
Returns:
the conversion rule of given model
Throws:
org.eclipse.core.runtime.CoreException
See Also:
getConversionRuleInstance(java.lang.String)

getConverterDescription

public String getConverterDescription(String converterId)
Retrieves description of converter with a given extension identifier.

Specified by:
getConverterDescription in interface IImporterPluginRegistryProvider
Parameters:
converterId - The id of the converter extension (defined in the plugin.xml file)
Returns:
the description of the converter
See Also:
IImporterPluginRegistryProvider.getConverterDescription(java.lang.String)

getConverterInstance

public IImportConverter getConverterInstance(String converterId)
                                      throws org.eclipse.core.runtime.CoreException
Returns the converter for model with given extension identifier.

Specified by:
getConverterInstance in interface IImporterPluginRegistryProvider
Parameters:
converterId - the id of the converter extension (defined in the plugin.xml file)
Returns:
the import converter of given model
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IImporterPluginRegistryProvider.getConverterInstance(java.lang.String)

getModelName

public String getModelName(String modelId)
                    throws org.eclipse.core.runtime.CoreException

Throws:
org.eclipse.core.runtime.CoreException
See Also:
pl.edu.agh.cast.importer.base.util.IImporterPluginRegistryProvider#getModelName(java.lang.String)

getTokenizerDescription

public String getTokenizerDescription(String tokenizerId)
Retrieves description of tokenizer with a given extension identifier.

Specified by:
getTokenizerDescription in interface IImporterPluginRegistryProvider
Parameters:
tokenizerId - The id of the tokenizer extension (defined in the plugin.xml file)
Returns:
the description of the tokenizer
See Also:
IImporterPluginRegistryProvider.getTokenizerDescription(java.lang.String)

getTokenizerInfos

public List<TokenizerInfo> getTokenizerInfos()
                                      throws org.eclipse.core.runtime.CoreException
Returns the list of information about all available tokenizers.

Specified by:
getTokenizerInfos in interface IImporterPluginRegistryProvider
Returns:
list of tokenizer information
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IImporterPluginRegistryProvider.getTokenizerInfos()

getTokenizerInstance

public IImportTokenizer getTokenizerInstance(String tokenizerId)
                                      throws org.eclipse.core.runtime.CoreException
Returns the tokenizer for model with given extension identifier.

Specified by:
getTokenizerInstance in interface IImporterPluginRegistryProvider
Parameters:
tokenizerId - the id of the tokenizer extension (defined in the plugin.xml file)
Returns:
the import tokenizer of given model
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IImporterPluginRegistryProvider.getTokenizerInstance(java.lang.String)

getTokenizerName

public String getTokenizerName(String tokenizerId)
Retrieves name of tokenizer with a given extension identifier.

Specified by:
getTokenizerName in interface IImporterPluginRegistryProvider
Parameters:
tokenizerId - The id of the tokenizer extension (defined in the plugin.xml file)
Returns:
the name of the tokenizer
See Also:
IImporterPluginRegistryProvider.getTokenizerName(java.lang.String)

getConversionRuleInfos

public List<ConversionRuleInfo> getConversionRuleInfos()
                                                throws org.eclipse.core.runtime.CoreException
Returns the list of information about all available conversion rules.

Specified by:
getConversionRuleInfos in interface IImporterPluginRegistryProvider
Returns:
list of conversion rules information
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IImporterPluginRegistryProvider.getConversionRuleInfos()

getConverterInfos

public List<ImportConverterInfo> getConverterInfos()
                                            throws org.eclipse.core.runtime.CoreException
Returns the list of information about all available converters.

Specified by:
getConverterInfos in interface IImporterPluginRegistryProvider
Returns:
list of converters information
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IImporterPluginRegistryProvider.getConverterInfos()

getConversionRuleName

public String getConversionRuleName(String ruleId)
Retrieves name of conversion rule with a given extension identifier.

Specified by:
getConversionRuleName in interface IImporterPluginRegistryProvider
Parameters:
ruleId - The id of the conversion rule extension (defined in the plugin.xml file)
Returns:
the name of the conversion rule
See Also:
IImporterPluginRegistryProvider.getConversionRuleName(java.lang.String)

getSupportedFileExtensions

public Map<String,String> getSupportedFileExtensions()
Retrieves all file extensions supported by all tokenizers, mapped to their tokenizer's identifiers.

Specified by:
getSupportedFileExtensions in interface IImporterPluginRegistryProvider
Returns:
all supported file extensions mappings
See Also:
IImporterPluginRegistryProvider.getSupportedFileExtensions()

getDataTypeInfos

public List<DataTypeInfo> getDataTypeInfos()
                                    throws org.eclipse.core.runtime.CoreException
Returns the list of information about all available data types.

Specified by:
getDataTypeInfos in interface IImporterPluginRegistryProvider
Returns:
list of data type information
Throws:
org.eclipse.core.runtime.CoreException
See Also:
IImporterPluginRegistryProvider.getDataTypeInfos()


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