|
install4j API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.install4j.api.context.OverwriteMode
public class OverwriteMode
Enumeration class that represents the different ways how install4j can react if asked to install a file over an already existing file.
FileOptions
Field Summary | |
---|---|
static OverwriteMode |
ALWAYS
Indicates that if the destination file exists it will be replaced in any case. |
static OverwriteMode |
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. |
static OverwriteMode |
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. |
static OverwriteMode |
IF_NEWER
Indicates that if the destination file exists it will be replaced if the source file is newer. |
static OverwriteMode |
IF_NEWER_OTHERWISE_ASK
Indicates that if the destination file exists it will be replaced if the source file is newer. |
static OverwriteMode |
NEVER
Indicates that if the destination file exists it won't be replaced in any case. |
Method Summary | |
---|---|
static OverwriteMode |
getFromIntValue(int overwrite)
Convert int value to constant. |
int |
getIntValue()
Convert to an int value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Method Detail |
---|
public int getIntValue()
public static OverwriteMode getFromIntValue(int overwrite)
overwrite
- the int value
public java.lang.String toString()
toString
in class java.lang.Object
|
install4j API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |