public final class WriteModelTask extends JomcModelTask
createTransformationOutputProperty
Constructor and Description |
---|
WriteModelTask()
Creates a new
WriteModelTask instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
createModuleResource, getModel, getModuleLocation, getModuleResources, getTransformerLocation, isJavaValidationEnabled, isModelObjectClasspathResolutionEnabled, isModelResourceValidationEnabled, newModelContext, preExecuteTask, setJavaValidationEnabled, setModelObjectClasspathResolutionEnabled, setModelResourceValidationEnabled, setModuleLocation, setTransformerLocation
assertKeysNotNull, assertLocationsNotNull, assertNamesNotNull, assertNotNull, createClasspath, createModelContextAttribute, createTransformationOutputProperty, createTransformationParameter, createTransformationParameterResource, execute, getClasspath, getDirectory, getIf, getModel, getModelContextAttributes, getModelContextFactoryClassName, getModletLocation, getModletSchemaSystemId, getPlatformProviderLocation, getProperties, getProviderLocation, getResource, getResources, getTransformationOutputProperties, getTransformationParameterResources, getTransformationParameters, getTransformer, getUnless, isModelProcessingEnabled, isModletResourceValidationEnabled, logMessage, logMessage, logSeparator, logValidationReport, newProjectClassLoader, postExecuteTask, setClasspath, setClasspathRef, setIf, setModel, setModelContextFactoryClassName, setModelProcessingEnabled, setModletLocation, setModletResourceValidationEnabled, setModletSchemaSystemId, setPlatformProviderLocation, setProviderLocation, setUnless
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public WriteModelTask()
WriteModelTask
instance.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
Copyright © 2005-2013 The JOMC Project. All Rights Reserved.