Package com.io7m.montarre.api
Enum Class MResourceRole
- All Implemented Interfaces:
Serializable,Comparable<MResourceRole>,Constable
The role of a resource file.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA bill-of-materials.A Windows application icon (".ico").A 128x128 application icon.A 16x16 application icon.A 24x24 application icon.A 256x256 application icon.A 32x32 application icon.A 48x48 application icon.A 512x512 application icon.A 64x64 application icon.An arbitrarily scaled SVG icon.A license file.A screenshot. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanisIcon()static MResourceRoleReturns the enum constant of this class with the specified name.static MResourceRole[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOM
A bill-of-materials. Recommended to be in CycloneDX format. -
LICENSE
A license file. -
ICO_WINDOWS
A Windows application icon (".ico"). -
ICON_16
A 16x16 application icon. -
ICON_24
A 24x24 application icon. -
ICON_32
A 32x32 application icon. -
ICON_48
A 48x48 application icon. -
ICON_64
A 64x64 application icon. -
ICON_128
A 128x128 application icon. -
ICON_256
A 256x256 application icon. -
ICON_512
A 512x512 application icon. -
ICON_SVG
An arbitrarily scaled SVG icon. -
SCREENSHOT
A screenshot.
-
-
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
-
iconPriority
public int iconPriority()- Returns:
- The priority of this role as an icon
-
isIcon
public boolean isIcon()- Returns:
trueif this role implies an icon
-