Package com.ultikits.ultitools.utils
Class PluginInstallUtils.InstallResult
java.lang.Object
com.ultikits.ultitools.utils.PluginInstallUtils.InstallResult
- Enclosing class:
PluginInstallUtils
What
PluginInstallUtils.installReporting(String, String) did. The reason strings are i18n keys
(Chinese, with their English values in lang/en.json), formatted with
getReasonArgs().-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe reasons, as catalogue keys (Chinese, with their English values inlang/en.json); a nestedKeysholder likeModuleFileTransactions.Keys. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInstallResult(boolean installed, String fileName, String reasonKey, Object[] reasonArgs) -
Method Summary
-
Field Details
-
installed
private final boolean installed -
fileName
-
reasonKey
-
reasonArgs
-
-
Constructor Details
-
InstallResult
-
-
Method Details
-
installed
- Parameters:
fileName- the file written into the modules folder- Returns:
- an install that succeeded
-
failed
- Returns:
- a failure with no reason to report beyond "install failed"
-
refused
- Parameters:
reasonKey- one of thePluginInstallUtils.InstallResult.KeysreasonsreasonArgs- its arguments- Returns:
- a refusal with its reason
-
isInstalled
public boolean isInstalled()- Returns:
- whether the module was installed
-
getFileName
- Returns:
- the file written into the modules folder, or
null
-
getReasonKey
- Returns:
- the reason's i18n key, or
null
-
getReasonArgs
- Returns:
- the reason's arguments, empty when there is no reason
-