Enum Class TextualType

java.lang.Object
java.lang.Enum<TextualType>
nl.vpro.domain.media.support.TextualType
All Implemented Interfaces:
Serializable, Comparable<TextualType>, Constable

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.

  • Enum Constant Details

    • MAIN

      public static final TextualType MAIN
      The main text. For a ProgramType.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.
      Use SUB
    • 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 Details

  • Method Details

    • values

      public static TextualType[] 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

      public static TextualType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isDeprecated

      public boolean isDeprecated()
    • value

      public String value()
    • fromValue

      public TextualType fromValue(String v)