|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.jomc.ant.JomcTask
org.jomc.ant.JomcModelTask
org.jomc.ant.WriteModelTask
public final class WriteModelTask
Task for writing model objects.
Field Summary |
---|
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 | |
---|---|
WriteModelTask()
Creates a new WriteModelTask instance. |
Method Summary | |
---|---|
WriteModelTask |
clone()
Creates and returns a copy of this object. |
void |
executeTask()
Called by the execute method prior to the postExecuteTask method. |
String |
getImplementation()
Gets the identifier of an implementation to write. |
Instance |
getInstance(Model model)
Gets the instance to write from a given model. |
String |
getModelEncoding()
Gets the encoding of the model resource. |
File |
getModelFile()
Gets the file to write the model to. |
String |
getModule()
Gets the identifier of a module to write. |
Module |
getModule(Model model)
Gets the module to write from a given model. |
String |
getSpecification()
Gets the identifier of a specification to write. |
Specification |
getSpecification(Model model)
Gets the specification to write from a given model. |
void |
setImplementation(String value)
Sets the identifier of an implementation to write. |
void |
setModelEncoding(String value)
Sets the encoding of the model resource. |
void |
setModelFile(File value)
Sets the file to write the model to. |
void |
setModule(String value)
Sets the identifier of a module to write. |
void |
setSpecification(String value)
Sets the identifier of a specification to write. |
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 |
---|
getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WriteModelTask()
WriteModelTask
instance.
Method Detail |
---|
public String getModelEncoding()
setModelEncoding(java.lang.String)
public void setModelEncoding(String value)
value
- The new encoding of the model resource or null
.getModelEncoding()
public File getModelFile()
null
.setModelFile(java.io.File)
public void setModelFile(File value)
value
- The new file to write the model to or null
.getModelFile()
public String getSpecification()
null
.setSpecification(java.lang.String)
public void setSpecification(String value)
value
- The new identifier of a specification to write or null
.getSpecification()
public Specification getSpecification(Model model)
model
- The model to get the specification to write from.
null
.
NullPointerException
- if model
is null
.getSpecification()
public String getImplementation()
null
.setImplementation(java.lang.String)
public void setImplementation(String value)
value
- The new identifier of an implementation to write or null
.getImplementation()
public Instance getInstance(Model model)
model
- The model to get the instance to write from.
null
.
NullPointerException
- if model
is null
.getImplementation()
public String getModule()
null
.setModule(java.lang.String)
public void setModule(String value)
value
- The new identifier of a module to write or null
.getModule()
public Module getModule(Model model)
model
- The model to get the module to write from.
null
.
NullPointerException
- if model
is null
.getModule()
public void executeTask() throws org.apache.tools.ant.BuildException
execute
method prior to the postExecuteTask
method.
executeTask
in class JomcTask
org.apache.tools.ant.BuildException
- if execution fails.JomcTask.execute()
public WriteModelTask clone()
clone
in class JomcModelTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |