Package lu.kbra.modelizer_next.common
Enum Class Platform
- All Implemented Interfaces:
Serializable,Comparable<Platform>,Constable
Operating system and package platform values used by update manifests.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether installer actions usually require administrator rights on this platform.static PlatformDetects the current platform.Returns the user-facing display name.static Platformget()Returns the value for the requested panel or key.Installs the er extension.booleanChecks whether supported is enabled or applies.Returns the string key used in update manifests.static PlatformReturns the enum constant of this class with the specified name.static Platform[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WINDOWS
-
LINUX
-
MACOS
-
UNSUPPORTED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
get
Returns the value for the requested panel or key.- Returns:
- the value
-
detect
Detects the current platform.- Parameters:
osName- name value to use- Returns:
- the detect result
-
isSupported
public boolean isSupported()Checks whether supported is enabled or applies.- Returns:
trueif supported is enabled or applies; otherwisefalse
-
displayName
Returns the user-facing display name.- Returns:
- the display name result
-
manifestKey
Returns the string key used in update manifests.- Returns:
- the manifest key result
-
installerExtension
Installs the er extension.- Returns:
- the installer extension result
-
adminRightsExpected
public boolean adminRightsExpected()Checks whether installer actions usually require administrator rights on this platform.- Returns:
truewhen the condition is met; otherwisefalse
-