Package nl.vpro.domain.media.support
Enum TextualType
- java.lang.Object
-
- java.lang.Enum<TextualType>
-
- nl.vpro.domain.media.support.TextualType
-
- All Implemented Interfaces:
Serializable
,Comparable<TextualType>
public enum TextualType extends Enum<TextualType>
Some textual values can have multiple types, and are stored in the same collection. E.g. main titles, sub titles.
-
-
Field Summary
Fields Modifier and Type Field Description static List<TextualType>
DESCRIPTIONS
static List<TextualType>
TITLES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextualType
fromValue(String v)
boolean
isDeprecated()
String
value()
static TextualType
valueOf(String name)
Returns the enum constant of this type with the specified name.static TextualType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAIN
public static final TextualType MAIN
The main text. For aProgramType.BROADCAST
this may be the title of the program (the title of the series?)
-
LONG
public static final TextualType LONG
A long description
-
SHORT
public static final TextualType SHORT
-
SUB
public static final TextualType SUB
A sub text. This may be the descriptive title of a broadcast if it is an episode of a series.
-
EPISODE
@Deprecated public static final TextualType EPISODE
Deprecated.UseSUB
-
ORIGINAL
public static final TextualType ORIGINAL
If the program was translated, this may contain one text in the original language.
-
KICKER
public static final TextualType KICKER
-
LEXICO
public static final TextualType LEXICO
-
WORK
public static final TextualType WORK
-
ABBREVIATION
public static final TextualType ABBREVIATION
-
-
Field Detail
-
TITLES
public static final List<TextualType> TITLES
-
DESCRIPTIONS
public static final List<TextualType> DESCRIPTIONS
-
-
Method Detail
-
values
public static TextualType[] 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 (TextualType c : TextualType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextualType 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
-
isDeprecated
public boolean isDeprecated()
-
value
public String value()
-
fromValue
public TextualType fromValue(String v)
-
-