org.weborganic.ox.tool
Class CheckRoundTripCommand
java.lang.Object
org.weborganic.ox.tool.CheckRoundTripCommand
- All Implemented Interfaces:
- Command<CheckRoundTripCommand.CheckRoundTripResult>
public final class CheckRoundTripCommand
- extends Object
- implements Command<CheckRoundTripCommand.CheckRoundTripResult>
- Version:
- 1 November 2013
- Author:
- Christophe Lauret
CheckRoundTripCommand
public CheckRoundTripCommand(Model model)
- Create a new command for this model.
getModel
public Model getModel()
- Description copied from interface:
Command
- Return the model this command uses.
- Specified by:
getModel
in interface Command<CheckRoundTripCommand.CheckRoundTripResult>
- Returns:
- the model this command uses.
setBaseDOCX
public void setBaseDOCX(String path)
- Parameters:
path
- The path to base docx to use
setSource
public void setSource(String path)
- Parameters:
path
- the path to the source file within the package.
setDownload
public void setDownload(File download)
- Parameters:
download
- The public download folder.
process
public CheckRoundTripCommand.CheckRoundTripResult 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<CheckRoundTripCommand.CheckRoundTripResult>
- Returns:
- the result of processing specific to this command and data.