
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.
|
File |
getInstanceModelFile()
Gets the file to write the instance to.
|
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.
|
File |
getModuleModelFile()
Gets the file to write the module to.
|
String |
getSpecification()
Gets the identifier of a specification to write.
|
Specification |
getSpecification(Model model)
Gets the specification to write from a given model.
|
File |
getSpecificationModelFile()
Gets the file to write the specification to.
|
void |
setImplementation(String value)
Sets the identifier of an implementation to write.
|
void |
setInstanceModelFile(File value)
Sets the file to write the instance to.
|
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 |
setModuleModelFile(File value)
Sets the file to write the module to.
|
void |
setSpecification(String value)
Sets the identifier of a specification to write.
|
void |
setSpecificationModelFile(File value)
Sets the file to write the specification to.
|
createModuleResource, getModel, getModuleLocation, getModuleResources, getTransformerLocation, isJavaValidationEnabled, isModelObjectClasspathResolutionEnabled, isModelResourceValidationEnabled, newModelContext, preExecuteTask, setJavaValidationEnabled, setModelObjectClasspathResolutionEnabled, setModelResourceValidationEnabled, setModuleLocation, setTransformerLocationassertKeysNotNull, 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, setUnlessbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic 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 File getSpecificationModelFile()
null.setSpecificationModelFile(java.io.File)public void setSpecificationModelFile(File value)
value - The new file to write the specification to or null.getSpecificationModelFile()public File getInstanceModelFile()
null.setInstanceModelFile(java.io.File)public void setInstanceModelFile(File value)
value - The new file to write the instance to or null.getInstanceModelFile()public File getModuleModelFile()
null.setModuleModelFile(java.io.File)public void setModuleModelFile(File value)
value - The new file to write the module to or null.getModuleModelFile()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 JomcTaskorg.apache.tools.ant.BuildException - if execution fails.JomcTask.execute()public WriteModelTask clone()
clone in class JomcModelTaskCopyright © 2005–2014 The JOMC Project. All rights reserved.