Package nl.vpro.domain.media
Enum Class MediaType
- All Implemented Interfaces:
Serializable
,Comparable<MediaType>
,java.lang.constant.Constable
,Displayable
This class provides a combined view on all program and group types and their
configuration options. Both program and groups have a type property, but there
is now way to add this property to their abstract super class while providing two
implementations of a generic super type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields inherited from interface nl.vpro.i18n.Displayable
NULL
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
boolean
Deprecated.static Class<?>[]
getClasses
(Collection<MediaType> types) final String
final MediaObject
final Class<? extends MediaObject>
static @NonNull MediaType
getMediaType
(MediaObject media) abstract SubMediaType
final boolean
boolean
boolean
boolean
boolean
static MediaType[]
Returns all 'leaf' mediaTypes.static MediaType[]
leafValues
(Class<? extends MediaObject> clazz) static MediaType
protected void
toString()
static MediaType
Returns the enum constant of this class with the specified name.static MediaType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.static Collection<MediaType>
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from interface nl.vpro.i18n.Displayable
display, getDisplayName, getDisplayName, getIcon, getIconClass, getPluralDisplayName, getPluralDisplayName
-
Enum Constant Details
-
MEDIA
The abstract type denoting every possible media type -
PROGRAM
The abstract type denoting every type of aProgram
-
BROADCAST
-
CLIP
-
STRAND
-
TRAILER
-
MOVIE
-
GROUP
The abstract type denoting every type of aGroup
-
SERIES
-
SEASON
-
UMBRELLA
-
ARCHIVE
Deprecated. -
COLLECTION
-
PLAYLIST
-
ALBUM
-
SEGMENT
-
TRACK
-
VISUALRADIO
-
VISUALRADIOSEGMENT
-
SEGMENTTYPE
The abstract type denoting every type of aSegment
-
RECORDING
- Since:
- 2.1
-
PROMO
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
-
setType
-
getMediaInstance
-
getMediaClass
-
getMediaObjectClass
-
hasSegments
public boolean hasSegments() -
canHaveScheduleEvents
public boolean canHaveScheduleEvents()- Since:
- 5.11
-
hasEpisodeOf
public final boolean hasEpisodeOf() -
preferredEpisodeOfTypes
-
allowedEpisodeOfTypes
-
canContainEpisodes
public final boolean canContainEpisodes() -
preferredEpisodeTypes
-
allowedEpisodeTypes
-
hasMemberOf
public boolean hasMemberOf() -
preferredMemberOfTypes
-
allowedMemberOfTypes
-
hasMembers
public boolean hasMembers() -
preferredMemberTypes
-
allowedMemberTypes
-
hasOrdering
public boolean hasOrdering() -
getSubType
-
getSubTypes
-
of
-
getMediaType
-
createInstance
Deprecated. -
getUrnPrefix
- Since:
- 7.6
-
leafValues
Returns all 'leaf' mediaTypes. That are all non abstract instances, that actually have a certaingetSubType()
.- Since:
- 5.8
-
leafValues
- Since:
- 5.8
-
getClasses
- Since:
- 2.1
-
valuesOf
- Since:
- 2.1
-