Class FileConflict
java.lang.Object
de.xima.fc.gui.bean.resource.model.FileConflict
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
ConstructorsConstructorDescriptionFileConflict
(String fileName, String category, String description) Creates a new file conflict with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setResolution
(EFileConflictResolution resolution) toString()
-
Constructor Details
-
FileConflict
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 Details
-
getResolution
- Returns:
- The desired resolution of the conflict.
-
setResolution
- Parameters:
resolution
- The desired resolution of the conflict.
-
getFileName
- Returns:
- The name of the conflicting file, i.e. the name file to be copied to the new destination.
-
getCategory
- Returns:
- A localized string with the category of the conflict, such as
"File exists already"
.
-
getDescription
- Returns:
- A localized string with the long description of the conflict.
-
toString
-