Enum Class AgeRating

java.lang.Object
java.lang.Enum<AgeRating>
nl.vpro.domain.media.AgeRating
All Implemented Interfaces:
Serializable, Comparable<AgeRating>, Constable, XmlValued, Displayable

public enum AgeRating extends Enum<AgeRating> implements Displayable, XmlValued
The NICAM age rating.
Since:
3.0
Author:
Michiel Meeuwissen
  • Enum Constant Details

    • _6

      public static final AgeRating _6
    • _9

      public static final AgeRating _9
    • _12

      public static final AgeRating _12
    • _14

      public static final AgeRating _14
      See MSE-4628
      Since:
      5.12
    • _16

      public static final AgeRating _16
    • _18

      public static final AgeRating _18
      See MSE-4628
      Since:
      5.12
    • ALL

      public static final AgeRating ALL
    • NOT_YET_RATED

      @Beta public static final AgeRating NOT_YET_RATED
  • Method Details

    • values

      public static AgeRating[] 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 AgeRating 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
    • xmlValueOf

      public static AgeRating xmlValueOf(String text)
    • getXmlValue

      public String getXmlValue()
      Specified by:
      getXmlValue in interface XmlValued
    • valueOf

      public static AgeRating valueOf(int kort)
      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:
      kort - 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
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Displayable
    • getDescription

      public String getDescription()
    • getIcon

      public Optional<URI> getIcon()
      Specified by:
      getIcon in interface Displayable
    • getIconClass

      public Optional<String> getIconClass()
      Specified by:
      getIconClass in interface Displayable
    • acceptedValues

      public static AgeRating[] acceptedValues()
      Returns all valid AgeRatings that are actually currently accepted.
      Since:
      7.2
    • getIntValue

      public int getIntValue()