Package org.eclipse.m2m.atl.emftvm.ant
Class EMFTVMTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.eclipse.m2m.atl.emftvm.ant.EMFTVMTask
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CompileTask
,LoadModelTask
,RegisterMetamodelTask
,RunTask
,SaveModelTask
public abstract class EMFTVMTask
extends org.apache.tools.ant.Task
General superclass for EMFTVM Ant tasks.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The EMFTVMResourceSet
reference from within Ant.Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
execute()
getMetamodel
(String name) Returns the loaded metamodel with the givenReturns the loaded model with the givenorg.eclipse.emf.ecore.resource.ResourceSet
Returns theResourceSet
object for this project.protected abstract void
Performs the actual execution.void
Sets a reference to the model by name.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
RESOURCE_SET
The EMFTVMResourceSet
reference from within Ant.- See Also:
-
-
Constructor Details
-
EMFTVMTask
public EMFTVMTask()
-
-
Method Details
-
getResourceSet
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()Returns theResourceSet
object for this project.- Returns:
- the
ResourceSet
object for this project.
-
getModel
Returns the loaded model with the givenname
.- Parameters:
name
- the model name- Returns:
- the loaded model with the given
name
-
getMetamodel
Returns the loaded metamodel with the givenname
.- Parameters:
name
- the metamodel name- Returns:
- the loaded metamodel with the given
name
-
setModel
Sets a reference to the model by name.- Parameters:
name
- the model namemodel
- the model
-
execute
public final void execute() throws org.apache.tools.ant.BuildException- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
innerExecute
Performs the actual execution.- Throws:
Exception
-