com.adobe.mediacore.metadata
Enum AdBreakAsWatched
java.lang.Object
java.lang.Enum<AdBreakAsWatched>
com.adobe.mediacore.metadata.AdBreakAsWatched
- All Implemented Interfaces:
- Serializable, Comparable<AdBreakAsWatched>
public enum AdBreakAsWatched
- extends Enum<AdBreakAsWatched>
|
Method Summary |
static AdBreakAsWatched |
createFrom(String value)
Returns the corresponding enum value for its string representation. |
String |
getValue()
Returns a string representation of the enum value which can be stored
( PSDK Metadata object only allow storage of string values). |
static AdBreakAsWatched |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AdBreakAsWatched[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
AD_BREAK_AS_WATCHED_ON_BEGIN
public static final AdBreakAsWatched AD_BREAK_AS_WATCHED_ON_BEGIN
AD_BREAK_AS_WATCHED_ON_END
public static final AdBreakAsWatched AD_BREAK_AS_WATCHED_ON_END
AD_BREAK_AS_WATCHED_NEVER
public static final AdBreakAsWatched AD_BREAK_AS_WATCHED_NEVER
values
public static AdBreakAsWatched[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (AdBreakAsWatched c : AdBreakAsWatched.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AdBreakAsWatched valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException - if the argument is null
getValue
public String getValue()
- Returns a string representation of the enum value which can be stored
( PSDK Metadata object only allow storage of string values).
- Returns:
- a string representation of the enum.
createFrom
public static AdBreakAsWatched createFrom(String value)
- Returns the corresponding enum value for its string representation.
- Parameters:
value - The string representation we want to convert.
- Returns:
- the actual enum value if a match was found or DEFAULT value
if none was found.