Package com.logicaldoc.comparison
Class DocumentComparatorManager
- java.lang.Object
 - 
- com.logicaldoc.comparison.DocumentComparatorManager
 
 
- 
public class DocumentComparatorManager extends Object
Manager class used to handle the comparators. For each file extension you may have different possible comparators, they are taken by the DocumentComparator extension point.- Since:
 - 8.2.3
 - Author:
 - Marco Meschieri - LogicalDOC
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DocumentComparatorManager() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<DocumentComparator>getAllComparators()Returns the list of possible comparatorsList<DocumentComparator>getAvailableComparators(String inFileName)Returns the list of possible comparators for a given input formatList<String>getAvailableFormats()Returns all the possible input formatsDocumentComparatorgetComparator(String fileName)Loads the proper comparator for the passed file names.Map<String,List<DocumentComparator>>getComparators()voidsetConfig(com.logicaldoc.util.config.ContextProperties config) 
 - 
 
- 
- 
Method Detail
- 
getAvailableFormats
public List<String> getAvailableFormats()
Returns all the possible input formats- Returns:
 - list of the file extensions for which a comparator exists
 
 
- 
getAvailableComparators
public List<DocumentComparator> getAvailableComparators(String inFileName)
Returns the list of possible comparators for a given input format- Parameters:
 inFileName- filename of the file to compare- Returns:
 - the list of available comparators
 
 
- 
getAllComparators
public Collection<DocumentComparator> getAllComparators()
Returns the list of possible comparators- Returns:
 - the list of all the comparators
 
 
- 
getComparator
public DocumentComparator getComparator(String fileName)
Loads the proper comparator for the passed file names. The right comparator used is defined in the configuration parameter comparator.extension- Parameters:
 fileName- filename of the file to compare- Returns:
 - the comparator currently in use
 
 
- 
getComparators
public Map<String,List<DocumentComparator>> getComparators()
 
- 
setConfig
public void setConfig(com.logicaldoc.util.config.ContextProperties config)
 
 - 
 
 -