Class FileConflict
- java.lang.Object
-
- de.xima.fc.gui.bean.resource.model.FileConflict
-
public class FileConflict extends Object
POJO class that describes a file conflict, i.e. when a file is copied to a destination, but a file with the same name exists already at that destination.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description FileConflict(String fileName, String category, String description)Creates a new file conflict with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()StringgetDescription()StringgetFileName()EFileConflictResolutiongetResolution()voidsetResolution(EFileConflictResolution resolution)StringtoString()
-
-
-
Constructor Detail
-
FileConflict
public FileConflict(String fileName, String category, String description)
Creates a new file conflict with the given parameters. ThegetResolution()is set toEFileConflictResolution.RENAME.- Parameters:
fileName- The name of the conflicting file, i.e. the name file to be copied to the new destination.category- A localized string with the category of the conflict, such as"File exists already".description- A localized string with the long description of the conflict.
-
-
Method Detail
-
getResolution
public EFileConflictResolution getResolution()
- Returns:
- The desired resolution of the conflict.
-
setResolution
public void setResolution(EFileConflictResolution resolution)
- Parameters:
resolution- The desired resolution of the conflict.
-
getFileName
public String getFileName()
- Returns:
- The name of the conflicting file, i.e. the name file to be copied to the new destination.
-
getCategory
public String getCategory()
- Returns:
- A localized string with the category of the conflict, such as
"File exists already".
-
getDescription
public String getDescription()
- Returns:
- A localized string with the long description of the conflict.
-
-