Package nl.vpro.domain.media
Enum GroupType
- java.lang.Object
-
- java.lang.Enum<GroupType>
-
- nl.vpro.domain.media.GroupType
-
- All Implemented Interfaces:
Serializable
,Comparable<GroupType>
,SubMediaType
public enum GroupType extends Enum<GroupType> implements SubMediaType
- Author:
- roekoe
-
-
Field Summary
Fields Modifier and Type Field Description static Set<GroupType>
EPISODE_CONTAINERS
static String
URN_PREFIX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContainEpisodes()
MediaType
getMediaType()
String
getUrnPrefix()
String
value()
static GroupType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GroupType[]
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
canHaveScheduleEvents, hasEpisodeOf, name
-
-
-
-
Enum Constant Detail
-
SERIES
public static final GroupType SERIES
-
SEASON
public static final GroupType SEASON
-
UMBRELLA
public static final GroupType UMBRELLA
-
ARCHIVE
@Deprecated public static final GroupType ARCHIVE
Deprecated.
-
COLLECTION
public static final GroupType COLLECTION
-
PLAYLIST
public static final GroupType PLAYLIST
-
ALBUM
public static final GroupType ALBUM
-
STRAND
public static final GroupType STRAND
-
-
Field Detail
-
URN_PREFIX
public static final String URN_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static GroupType[] 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 (GroupType c : GroupType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GroupType 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()
-
getUrnPrefix
public String getUrnPrefix()
- Specified by:
getUrnPrefix
in interfaceSubMediaType
-
getMediaType
public MediaType getMediaType()
- Specified by:
getMediaType
in interfaceSubMediaType
-
canContainEpisodes
public boolean canContainEpisodes()
- Specified by:
canContainEpisodes
in interfaceSubMediaType
-
-