public enum OverwriteMode extends java.lang.Enum<OverwriteMode>
FileOptions
Enum Constant and Description |
---|
ALWAYS
Indicates that if the destination file exists it will be replaced in any case.
|
ALWAYS_ASK
Indicates that the user will be asked whether to replace the file even if it was installed by a previous run
of the installer.
|
ALWAYS_ASK_EXCEPT_FOR_UPDATE
Indicates that if the destination file exists and has not been installed by a previous run of the installer
the user will be asked whether to replace the file.
|
IF_NEWER
Indicates that if the destination file exists it will be replaced if the source
file is newer.
|
IF_NEWER_OTHERWISE_ASK
Indicates that if the destination file exists it will be replaced if the source
file is newer.
|
NEVER
Indicates that if the destination file exists it won't be replaced in any case.
|
Modifier and Type | Method and Description |
---|---|
static OverwriteMode |
getFromIntValue(int overwrite)
Convert int value to constant.
|
int |
getIntValue()
Convert to an int value.
|
java.lang.String |
toString() |
static OverwriteMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OverwriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OverwriteMode NEVER
public static final OverwriteMode ALWAYS
public static final OverwriteMode IF_NEWER
public static final OverwriteMode IF_NEWER_OTHERWISE_ASK
public static final OverwriteMode ALWAYS_ASK_EXCEPT_FOR_UPDATE
public static final OverwriteMode ALWAYS_ASK
public static OverwriteMode[] values()
for (OverwriteMode c : OverwriteMode.values()) System.out.println(c);
public static OverwriteMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static OverwriteMode getFromIntValue(int overwrite)
overwrite
- the int valuepublic int getIntValue()
public java.lang.String toString()
toString
in class java.lang.Enum<OverwriteMode>