org.weborganic.ox.tool
Class TransformCommand
java.lang.Object
org.weborganic.ox.tool.TransformCommand
- All Implemented Interfaces:
- Command<TransformCommand.TransformResult>
public final class TransformCommand
- extends Object
- implements Command<TransformCommand.TransformResult>
- Version:
- 25 October 2013
- Author:
- Christophe Lauret
TransformCommand
public TransformCommand(Model model)
- Create a new command.
- Parameters:
model
- The model to use
getModel
public Model getModel()
- Description copied from interface:
Command
- Return the model this command uses.
- Specified by:
getModel
in interface Command<TransformCommand.TransformResult>
- Returns:
- the model this command uses.
setSourcePath
public void setSourcePath(String path)
- Parameters:
path
- The path to the source within the data package.
setTargetPath
public void setTargetPath(String path)
- Parameters:
path
- The path to the target within the data package.
setTemplatePath
public void setTemplatePath(String path)
- Parameters:
path
- The path to the templates within the model.
process
public TransformCommand.TransformResult process(PackageData data)
- Description copied from interface:
Command
- Processes the specified package data according to the model defined for this command.
This method should intercept errors occurring during processing and include them in the results.
- Specified by:
process
in interface Command<TransformCommand.TransformResult>
- Returns:
- the result of processing specific to this command and data.