Package org.eclipse.m2m.atl.emftvm.ant
Class LoadModelTask
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.LoadModelTask
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
LoadMetamodelTask
,NewModelTask
Loads a
Model
.-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.emftvm.ant.EMFTVMTask
RESOURCE_SET
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 TypeMethodDescriptionprotected Model
createModel
(org.eclipse.emf.ecore.resource.Resource resource) Creates a newModel
instance for the givenResource
.getName()
Returns the model name.getUri()
Returns the model URI.Returns the model workspace path.protected void
Performs the actual execution.protected void
loadFromNsuri
(String uri) Loads model fromprotected void
loadFromURI
(org.eclipse.emf.common.util.URI uri) Loads model fromprotected void
loadFromWspath
(String wspath) Loads model fromvoid
Sets the model name.void
Sets the model URI.void
Sets the model workspace path.Methods inherited from class org.eclipse.m2m.atl.emftvm.ant.EMFTVMTask
execute, getMetamodel, getModel, getResourceSet, setModel
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
-
Constructor Details
-
LoadModelTask
public LoadModelTask()
-
-
Method Details
-
setName
Sets the model name.- Parameters:
name
- the name to set
-
getName
Returns the model name.- Returns:
- the name
-
setWspath
Sets the model workspace path.- Parameters:
wspath
- the wspath to set
-
getWspath
Returns the model workspace path.- Returns:
- the wspath
-
setUri
Sets the model URI.- Parameters:
uri
- the uri to set
-
getUri
Returns the model URI.- Returns:
- the uri
-
innerExecute
Performs the actual execution.- Specified by:
innerExecute
in classEMFTVMTask
- Throws:
Exception
-
createModel
Creates a newModel
instance for the givenResource
.- Parameters:
resource
- theResource
- Returns:
- a new
Model
.
-
loadFromNsuri
Loads model fromnsuri
.- Parameters:
uri
- the namespace URI
-
loadFromWspath
Loads model fromwspath
.- Parameters:
wspath
- the workspace path
-
loadFromURI
protected void loadFromURI(org.eclipse.emf.common.util.URI uri) Loads model fromuri
.- Parameters:
uri
- the EMF URI
-