Enum Class BinaryMedium.Type
- All Implemented Interfaces:
Serializable
,Comparable<BinaryMedium.Type>
,Constable
- Enclosing interface:
- BinaryMedium
The type of the binary medium.
- Since:
- 4.0.69
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BinaryMedium.Type
fromElement
(IDProvider element) Gets the binary medium type for the specified element.static BinaryMedium.Type
fromPrefix
(String value) Gets a binary medium type from specified prefix.static String
getNameFor
(IDProvider element) Get the name of the binary medium for the specified element.Gets the prefix.abstract boolean
isTypeOf
(IDProvider element) Checks if medium is instance of given element.nameFor
(IDProvider element) Returns the name for the given element combined with the prefix.static BinaryMedium.Type
Returns the enum constant of this class with the specified name.static BinaryMedium.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Unknown type of medium.- Since:
- 4.0.69
-
MEDIUM
A firstspirit medium.- Since:
- 4.0.69
-
FOLDER
A firstspirit media folder.- Since:
- 4.0.69
-
-
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
-
getPrefix
Gets the prefix.- Returns:
- the prefix.
- Since:
- 4.0.137
-
isTypeOf
Checks if medium is instance of given element.- Returns:
- true if instance of given type.
- Since:
- 4.0.69
-
nameFor
Returns the name for the given element combined with the prefix.- Returns:
- the name for the given element.
- Since:
- 4.1.16 branch 4.0.142
-
fromPrefix
Gets a binary medium type from specified prefix.- Parameters:
value
- the prefix to get binary medium type from.- Returns:
- a binary medium type.
- Since:
- 4.0.69
-
getNameFor
Get the name of the binary medium for the specified element.- Parameters:
element
- the element to get the name for.- Since:
- 4.0.69
-
fromElement
Gets the binary medium type for the specified element.- Parameters:
element
- the element to get the type for.- Returns:
- the binary medium type.
- Since:
- 4.1.16 branch 4.0.142
-