Package org.eclipse.m2m.atl.adt.runner
Class CreateRunnableData
java.lang.Object
org.eclipse.m2m.atl.adt.runner.CreateRunnableData
Stores / Loads ATL launch parameters from:
- an ATL file.
- an ATL Launch Configuration.
- an ATL properties file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAggregates all metamodels names.Aggregates all models names.static org.eclipse.core.resources.IFileReturns the ATL file for a given .atl or .asm path.Aggregates all models to load names.Aggregates all models to save names.org.eclipse.core.resources.IFile[]booleanisMetametamodel(String metamodelName) Returnstrueif the given metamodel is a metametamodel.booleanisQuery()booleanvoidUpdates the parameters from the given transformation files.voidload(org.eclipse.debug.core.ILaunchConfiguration configuration) Updates the parameters from the given launch configuration.voidload(ATLProperties properties) Updates the parameters from the given property file.voidsetOptions(Map<String, String> options) voidupdateLibraryLocation(String name, String location) Sets the given location for the given library name.voidupdateMetamodelLocation(String name, String location) Sets the given location for the given metamodel name.
-
Constructor Details
-
CreateRunnableData
public CreateRunnableData()
-
-
Method Details
-
load
Updates the parameters from the given transformation files.- Parameters:
filePaths- the transformation file paths- Throws:
IOExceptionorg.eclipse.core.runtime.CoreException
-
load
public void load(ATLProperties properties) throws IOException, org.eclipse.core.runtime.CoreException Updates the parameters from the given property file.- Parameters:
properties- the properties- Throws:
IOExceptionorg.eclipse.core.runtime.CoreException
-
load
public void load(org.eclipse.debug.core.ILaunchConfiguration configuration) throws IOException, org.eclipse.core.runtime.CoreException Updates the parameters from the given launch configuration.- Parameters:
configuration- the ATL launch configuration- Throws:
IOExceptionorg.eclipse.core.runtime.CoreException
-
getClassShortName
-
getTransformationFiles
public org.eclipse.core.resources.IFile[] getTransformationFiles() -
getFileType
-
isRefining
public boolean isRefining() -
getInModels
-
getInOutModels
-
getOutModels
-
getAllLibrariesNames
-
getLibraryLocations
-
getMetamodelLocations
-
getOptions
-
updateLibraryLocation
Sets the given location for the given library name.- Parameters:
name- the library namelocation- the library location
-
updateMetamodelLocation
Sets the given location for the given metamodel name.- Parameters:
name- the metamodel namelocation- the metamodel location
-
setOptions
-
getAllModelsNames
Aggregates all models names.- Returns:
- the model names
-
getModelsToLoadNames
Aggregates all models to load names.- Returns:
- the model names
-
getModelsToSaveNames
Aggregates all models to save names.- Returns:
- the model names
-
getAllMetamodelsNames
Aggregates all metamodels names.- Returns:
- the metamodels names
-
isMetametamodel
Returnstrueif the given metamodel is a metametamodel.- Parameters:
metamodelName- the metamodel name- Returns:
trueif the given metamodel is a metametamodel
-
isQuery
public boolean isQuery() -
getFile
Returns the ATL file for a given .atl or .asm path.- Parameters:
path- the file path- Returns:
- the .atl file
-