org.weborganic.ox.tool
Class CheckRoundTripCommand

java.lang.Object
  extended by 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

Nested Class Summary
 class CheckRoundTripCommand.CheckRoundTripResult
           
 
Constructor Summary
CheckRoundTripCommand(Model model)
          Create a new command for this model.
 
Method Summary
 Model getModel()
          Return the model this command uses.
 CheckRoundTripCommand.CheckRoundTripResult process(PackageData data)
          Processes the specified package data according to the model defined for this command.
 void setBaseDOCX(String path)
           
 void setDownload(File download)
           
 void setSource(String path)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckRoundTripCommand

public CheckRoundTripCommand(Model model)
Create a new command for this model.

Method Detail

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.