Package nl.vpro.domain.media
Enum SegmentType
- java.lang.Object
-
- java.lang.Enum<SegmentType>
-
- nl.vpro.domain.media.SegmentType
-
- All Implemented Interfaces:
Serializable
,Comparable<SegmentType>
,SubMediaType
public enum SegmentType extends Enum<SegmentType> implements SubMediaType
- Since:
- 2.0
- Author:
- Michiel Meeuwissen
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SEGMENT
VISUALRADIOSEGMENT
-
Field Summary
Fields Modifier and Type Field Description static String
URN_PREFIX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentType
fromValue(String v)
MediaType
getMediaType()
String
getUrnPrefix()
String
value()
static SegmentType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SegmentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface nl.vpro.domain.media.SubMediaType
canContainEpisodes, canHaveScheduleEvents, hasEpisodeOf, name
-
-
-
-
Enum Constant Detail
-
SEGMENT
public static final SegmentType SEGMENT
-
VISUALRADIOSEGMENT
public static final SegmentType VISUALRADIOSEGMENT
-
-
Field Detail
-
URN_PREFIX
public static final String URN_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SegmentType[] 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 (SegmentType c : SegmentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SegmentType 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 nameNullPointerException
- if the argument is null
-
value
public String value()
-
fromValue
public SegmentType fromValue(String v)
-
getUrnPrefix
public String getUrnPrefix()
- Specified by:
getUrnPrefix
in interfaceSubMediaType
-
getMediaType
public MediaType getMediaType()
- Specified by:
getMediaType
in interfaceSubMediaType
-
-