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

java.lang.Object
  extended by org.eclipse.m2m.atl.service.core.configuration.TransformationConfiguration
      extended by org.eclipse.m2m.atl.service.core.configuration.ComposedTransformationConfiguration

public class ComposedTransformationConfiguration
extends TransformationConfiguration

ComposedTransformationConfiguration (i.e. a chain of transformations to execute) 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
 
Fields inherited from class org.eclipse.m2m.atl.service.core.configuration.TransformationConfiguration
models, pluginId
 
Constructor Summary
ComposedTransformationConfiguration(java.lang.String configurationName, java.lang.String pluginId)
           
 
Method Summary
 void addApplyMarker(java.lang.String modelProblemName)
           
 void addInModel(java.lang.String name, java.lang.String path, java.lang.String metamodel, boolean inWorkspace)
           
 void addMetamodel(java.lang.String name, java.lang.String path, java.lang.String nsUri, boolean isM3, java.lang.String modelHandler)
           
 void addModelToSave(java.lang.String name, java.lang.String fileName)
           
 void addModelToSave(java.lang.String name, java.lang.String fileName, java.lang.String extractorType, java.util.Map extractorParams)
           
 void addTransformation(Transformation t)
           
 void execute(java.lang.String pathFolder, java.lang.String pathInModel)
          Main method launchs by UI
 void executeTransformation(Transformation transformation)
          execute a transformation output models are loaded before running the transformation
 void loadModel(Transformation transformation, java.lang.String pathInModel)
          Load a model selected from the workspace
 void saveModel(java.lang.String pathFolder, java.lang.String modelName)
          Save a model in the workspace
 
Methods inherited from class org.eclipse.m2m.atl.service.core.configuration.TransformationConfiguration
addFileExtension, getConfigurationName, getFileExtensions, getModelsForTransformation, isMatchingExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComposedTransformationConfiguration

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

addTransformation

public void addTransformation(Transformation t)

addInModel

public void addInModel(java.lang.String name,
                       java.lang.String path,
                       java.lang.String metamodel,
                       boolean inWorkspace)

addMetamodel

public void addMetamodel(java.lang.String name,
                         java.lang.String path,
                         java.lang.String nsUri,
                         boolean isM3,
                         java.lang.String modelHandler)

addModelToSave

public void addModelToSave(java.lang.String name,
                           java.lang.String fileName)

addModelToSave

public void addModelToSave(java.lang.String name,
                           java.lang.String fileName,
                           java.lang.String extractorType,
                           java.util.Map extractorParams)

addApplyMarker

public void addApplyMarker(java.lang.String modelProblemName)

execute

public void execute(java.lang.String pathFolder,
                    java.lang.String pathInModel)
             throws ServiceException
Main method launchs by UI

Specified by:
execute in class TransformationConfiguration
Throws:
ServiceException

loadModel

public void loadModel(Transformation transformation,
                      java.lang.String pathInModel)
               throws ServiceException
Load a model selected from the workspace

Parameters:
transformation -
pathInModel -
Throws:
ServiceException

executeTransformation

public void executeTransformation(Transformation transformation)
                           throws ServiceException
execute a transformation output models are loaded before running the transformation

Parameters:
transformation -
Throws:
ServiceException

saveModel

public void saveModel(java.lang.String pathFolder,
                      java.lang.String modelName)
               throws ServiceException
Save a model in the workspace

Parameters:
pathFolder - location to save the created model
modelName - modelName for the created model
Throws:
ServiceException

Copyright 2007 IBM Corporation and others.
All Rights Reserved.