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
FieldsModifier and TypeFieldDescriptionstatic final StringThe EMFTVMResourceSetreference from within Ant.Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidexecute()getMetamodel(String name) Returns the loaded metamodel with the givenReturns the loaded model with the givenorg.eclipse.emf.ecore.resource.ResourceSetReturns theResourceSetobject for this project.protected abstract voidPerforms the actual execution.voidSets 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
RESOURCE_SET
The EMFTVMResourceSetreference from within Ant.- See Also:
-
-
Constructor Details
-
EMFTVMTask
public EMFTVMTask()
-
-
Method Details
-
getResourceSet
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()Returns theResourceSetobject for this project.- Returns:
- the
ResourceSetobject 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:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
innerExecute
Performs the actual execution.- Throws:
Exception
-