org.eclipse.m2m.atl.service.core.configuration
Class TransformationConfiguration

java.lang.Object
  extended by org.eclipse.m2m.atl.service.core.configuration.TransformationConfiguration
Direct Known Subclasses:
ComposedTransformationConfiguration, SingleTransformationConfiguration

public abstract class TransformationConfiguration
extends java.lang.Object

Abstract class for TransformationConfiguration It contains models used by the transformations, and metadata transformation TransformationConfiguration are built and stocked by the ServiceExtensionManager UI parts can execute a transformationConfiguration with method execute()


Field Summary
protected  java.util.Map models
          Models used by the transformations
protected  java.lang.String pluginId
          PluginId where resources are located for this transformationConfiguration
 
Constructor Summary
TransformationConfiguration(java.lang.String configurationName, java.lang.String pluginId)
           
 
Method Summary
 void addFileExtension(java.lang.String fileExtension)
           
abstract  void execute(java.lang.String projectPath, java.lang.String pathInModel)
           
 java.lang.String getConfigurationName()
           
 java.util.List getFileExtensions()
           
 java.util.Map getModelsForTransformation(Transformation t)
          This map contains asmModels for an ATL transformation
 boolean isMatchingExtension(java.lang.String extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pluginId

protected java.lang.String pluginId
PluginId where resources are located for this transformationConfiguration


models

protected java.util.Map models
Models used by the transformations

Constructor Detail

TransformationConfiguration

public TransformationConfiguration(java.lang.String configurationName,
                                   java.lang.String pluginId)
Method Detail

execute

public abstract void execute(java.lang.String projectPath,
                             java.lang.String pathInModel)
                      throws ServiceException
Throws:
ServiceException

addFileExtension

public void addFileExtension(java.lang.String fileExtension)

getFileExtensions

public java.util.List getFileExtensions()

isMatchingExtension

public boolean isMatchingExtension(java.lang.String extension)
Parameters:
extension -
Returns:
return true if extension is contained is the extensions list

getConfigurationName

public java.lang.String getConfigurationName()

getModelsForTransformation

public java.util.Map getModelsForTransformation(Transformation t)
This map contains asmModels for an ATL transformation

Parameters:
t -
Returns:
a Map

Copyright 2007 IBM Corporation and others.
All Rights Reserved.