Class MoveSourceFile.Settings

  • All Implemented Interfaces:
    io.annot8.api.settings.Settings
    Enclosing class:
    MoveSourceFile

    public static class MoveSourceFile.Settings
    extends Object
    implements io.annot8.api.settings.Settings
    • Constructor Detail

      • Settings

        public Settings()
    • Method Detail

      • validate

        public boolean validate()
        Specified by:
        validate in interface io.annot8.api.settings.Settings
      • getRootOutputFolder

        @Description(value="The root folder in which to save files",
                     defaultValue=".")
        public Path getRootOutputFolder()
      • setRootOutputFolder

        public void setRootOutputFolder​(Path rootOutputFolder)
      • getBasePaths

        @Description("If the source path of any Item begins with any of these paths, then it will be truncated")
        public List<Path> getBasePaths()
      • setBasePaths

        public void setBasePaths​(List<Path> basePaths)
      • isCopyOriginalFile

        @Description(value="If true, then the source file is copied instead of moved",
                     defaultValue="false")
        public boolean isCopyOriginalFile()
      • setCopyOriginalFile

        public void setCopyOriginalFile​(boolean copyOriginalFile)
      • isReplaceExisting

        @Description(value="If true, then any existing files will be replaced. If false, then an error will be thrown if the target file already exists.",
                     defaultValue="false")
        public boolean isReplaceExisting()
      • setReplaceExisting

        public void setReplaceExisting​(boolean replaceExisting)
      • isFlatten

        @Description(value="If true, then all files are moved into the same top level folder and the base path is ignored",
                     defaultValue="false")
        public boolean isFlatten()
      • setFlatten

        public void setFlatten​(boolean flatten)
      • isUpdateSource

        @Description(value="If true, then the source property of the Item is updated following a successful move",
                     defaultValue="false")
        public boolean isUpdateSource()
      • setUpdateSource

        public void setUpdateSource​(boolean updateSource)