Package nl.vpro.domain.media
Enum ProgramType
- java.lang.Object
-
- java.lang.Enum<ProgramType>
-
- nl.vpro.domain.media.ProgramType
-
- All Implemented Interfaces:
Serializable
,Comparable<ProgramType>
,SubMediaType
public enum ProgramType extends Enum<ProgramType> implements SubMediaType
-
-
Field Summary
Fields Modifier and Type Field Description static Set<ProgramType>
EPISODES
static String
URN_PREFIX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHaveScheduleEvents()
ProgramType
fromValue(String v)
MediaType
getMediaType()
String
getUrnPrefix()
boolean
hasEpisodeOf()
String
value()
static ProgramType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProgramType[]
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, name
-
-
-
-
Enum Constant Detail
-
BROADCAST
public static final ProgramType BROADCAST
-
MOVIE
public static final ProgramType MOVIE
-
TRAILER
public static final ProgramType TRAILER
-
CLIP
public static final ProgramType CLIP
-
STRAND
public static final ProgramType STRAND
-
TRACK
public static final ProgramType TRACK
-
VISUALRADIO
public static final ProgramType VISUALRADIO
-
RECORDING
public static final ProgramType RECORDING
- Since:
- 2.1
-
PROMO
public static final ProgramType PROMO
-
-
Field Detail
-
URN_PREFIX
public static final String URN_PREFIX
- See Also:
- Constant Field Values
-
EPISODES
public static final Set<ProgramType> EPISODES
-
-
Method Detail
-
values
public static ProgramType[] 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 (ProgramType c : ProgramType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProgramType 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 ProgramType fromValue(String v)
-
getMediaType
public MediaType getMediaType()
- Specified by:
getMediaType
in interfaceSubMediaType
-
getUrnPrefix
public String getUrnPrefix()
- Specified by:
getUrnPrefix
in interfaceSubMediaType
-
hasEpisodeOf
public boolean hasEpisodeOf()
- Specified by:
hasEpisodeOf
in interfaceSubMediaType
-
canHaveScheduleEvents
public boolean canHaveScheduleEvents()
- Specified by:
canHaveScheduleEvents
in interfaceSubMediaType
-
-