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
-
-
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
-
getMetamodel
-
setModel
-
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
-