org.weborganic.ox.tool
Interface Command<R extends Result>

All Known Implementing Classes:
CheckRoundTripCommand, DiffTextCommand, PackageDOCXCommand, SchematronCommand, SimplifyDOCXCommand, TidyCommand, TransformCommand

public interface Command<R extends Result>

Defines a command to run on a specific data package.

Additional parameters for the command can be specified as class attributes.

Version:
28 October 2013
Author:
Christophe Lauret

Method Summary
 Model getModel()
          Return the model this command uses.
 R process(PackageData data)
          Processes the specified package data according to the model defined for this command.
 

Method Detail

getModel

Model getModel()
Return the model this command uses.

Returns:
the model this command uses.

process

R process(PackageData data)
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.

Parameters:
the - data to process
Returns:
the result of processing specific to this command and data.