Enum CopyStep.DirectoryMode

    • Enum Constant Detail

      • CONTENTS_ONLY

        public static final CopyStep.DirectoryMode CONTENTS_ONLY
        Copy only the contents of the directory (recursively). If copying a source directory 'foo' with a file 'bar.txt' to a destination directory 'dest', this will create 'dest/bar.txt'.
      • DIRECTORY_AND_CONTENTS

        public static final CopyStep.DirectoryMode DIRECTORY_AND_CONTENTS
        Copy the directory and its contents (recursively). If copying a source directory 'foo' with a file 'bar.txt' to a destination directory 'dest', this will create 'dest/foo/bar.txt'.
    • Method Detail

      • values

        public static CopyStep.DirectoryMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CopyStep.DirectoryMode c : CopyStep.DirectoryMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CopyStep.DirectoryMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null