Package com.inet.pdfc
Class PDFC.ComparisonParameters
- java.lang.Object
-
- com.inet.pdfc.PDFC.ComparisonParameters
-
- Enclosing class:
- PDFC
public class PDFC.ComparisonParameters extends java.lang.ObjectThis class gathers the configuration parameters to run a comparison, except the files to compare.- Since:
- i-net PDFC 4.3
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPresenter(BasePresenter p)Adds a presenter to the comparison.<T extends BasePresenter>
TgetPresenter(java.lang.Class<T> pClass)Returns a presenter that was registered for the comparison.java.util.List<BasePresenter>getPresenters()Returns a view on the presenter to be used for the comparisonIProfilegetProfile()Returns the profile to be used for the comparison.java.io.FilegetRootFolder()Returns the root folder to store the results toSettingsgetSettings()Return the settingvoidsetRootFolder(java.io.File rootFolder)Sets the root folder for all presenters that will be created AFTER calling this method
-
-
-
Method Detail
-
getProfile
public IProfile getProfile()
Returns the profile to be used for the comparison. This instance is supposed to be updated byCommandLineParameter- Returns:
- the profile to be used for the comparison.
-
getSettings
public Settings getSettings()
Return the setting- Returns:
- the setting
-
addPresenter
public void addPresenter(BasePresenter p)
Adds a presenter to the comparison. If a presenter of the exact same class is already registered, it will be replaced.- Parameters:
p- the parameter to add to the comparer
-
getPresenter
public <T extends BasePresenter> T getPresenter(java.lang.Class<T> pClass)
Returns a presenter that was registered for the comparison.- Parameters:
pClass- the class type of the presenter to get- Returns:
- the registered presenter or
nullif none is registered
-
getPresenters
public java.util.List<BasePresenter> getPresenters()
Returns a view on the presenter to be used for the comparison- Returns:
- an unmodifiable list with the currently configured presenters
-
getRootFolder
public java.io.File getRootFolder()
Returns the root folder to store the results to- Returns:
- the root folder to store the results to
-
setRootFolder
public void setRootFolder(java.io.File rootFolder)
Sets the root folder for all presenters that will be created AFTER calling this method- Parameters:
rootFolder- the root folder to be used
-
-