public static enum BinaryMedium.Type extends Enum<BinaryMedium.Type>
Enum Constant and Description |
---|
FOLDER
A firstspirit media folder.
|
MEDIUM
A firstspirit medium.
|
UNDEFINED
Unknown type of medium.
|
Modifier and Type | Method and Description |
---|---|
static 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.
|
String |
getPrefix()
Gets the prefix.
|
abstract boolean |
isTypeOf(IDProvider element)
Checks if medium is instance of given element.
|
String |
nameFor(IDProvider element)
Returns the name for the given element combined with the prefix.
|
static BinaryMedium.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BinaryMedium.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BinaryMedium.Type UNDEFINED
public static final BinaryMedium.Type MEDIUM
public static final BinaryMedium.Type FOLDER
public static BinaryMedium.Type[] values()
for (BinaryMedium.Type c : BinaryMedium.Type.values()) System.out.println(c);
public static BinaryMedium.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getPrefix()
public abstract boolean isTypeOf(IDProvider element)
public String nameFor(IDProvider element)
public static BinaryMedium.Type fromPrefix(String value)
value
- the prefix to get binary medium type from.public static String getNameFor(IDProvider element)
element
- the element to get the name for.public static BinaryMedium.Type fromElement(IDProvider element)
the
- element to get the type for.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210