Class 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 Detail

      • FileConflict

        public FileConflict​(String fileName,
                            String category,
                            String description)
        Creates a new file conflict with the given parameters. The getResolution() is set to EFileConflictResolution.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

      • 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.