Package org.eclipse.m2m.atl.emftvm.ant
Class SaveModelTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.eclipse.m2m.atl.emftvm.ant.EMFTVMTask
org.eclipse.m2m.atl.emftvm.ant.SaveModelTask
- All Implemented Interfaces:
Cloneable
Saves a
Model.-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.emftvm.ant.EMFTVMTask
RESOURCE_SETFields 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 TypeMethodDescriptiongetName()Returns the model name.getUri()Returns the model URI.Returns the workspace path.protected voidPerforms the actual execution.booleanReturns whether this model file is derived.protected voidsaveToNsuri(String uri) Saves model toprotected voidsaveToURI(org.eclipse.emf.common.util.URI uri) Saves model to EMF URI.protected voidsaveToWspath(String wspath) Saves model tovoidsetDerived(boolean derived) Sets this model file as derived.voidSets the model name.voidSets the model URI.voidSets the workspace path.Methods inherited from class org.eclipse.m2m.atl.emftvm.ant.EMFTVMTask
execute, getMetamodel, getModel, getResourceSet, setModelMethods 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
-
Constructor Details
-
SaveModelTask
public SaveModelTask()
-
-
Method Details
-
setName
Sets the model name.- Parameters:
name- the name to set
-
getName
Returns the model name.- Returns:
- the name
-
setWspath
Sets the workspace path.- Parameters:
wspath- the wspath to set
-
getWspath
Returns the workspace path.- Returns:
- the wspath
-
setUri
Sets the model URI.- Parameters:
uri- the uri to set
-
getUri
Returns the model URI.- Returns:
- the uri
-
setDerived
public void setDerived(boolean derived) Sets this model file as derived.- Parameters:
derived- the derived to set
-
isDerived
public boolean isDerived()Returns whether this model file is derived.- Returns:
- the derived
-
innerExecute
Performs the actual execution.- Specified by:
innerExecutein classEMFTVMTask- Throws:
Exception
-
saveToNsuri
Saves model touri
.- Parameters:
uri- the EMF URI
-
saveToWspath
Saves model towspath
.- Parameters:
wspath- the workspace path
-
saveToURI
protected void saveToURI(org.eclipse.emf.common.util.URI uri) Saves model to EMF URI.- Parameters:
uri- the EMF URI
-