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
-
Method Summary
Modifier and TypeMethodDescriptionAggregates all metamodels names.Aggregates all models names.static org.eclipse.core.resources.IFile
Returns 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[]
boolean
isMetametamodel
(String metamodelName) Returnstrue
if the given metamodel is a metametamodel.boolean
isQuery()
boolean
void
Updates the parameters from the given transformation files.void
load
(org.eclipse.debug.core.ILaunchConfiguration configuration) Updates the parameters from the given launch configuration.void
load
(ATLProperties properties) Updates the parameters from the given property file.void
setOptions
(Map<String, String> options) void
updateLibraryLocation
(String name, String location) Sets the given location for the given library name.void
updateMetamodelLocation
(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:
IOException
org.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:
IOException
org.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:
IOException
org.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
Returnstrue
if the given metamodel is a metametamodel.- Parameters:
metamodelName
- the metamodel name- Returns:
true
if 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
-