Package nl.vpro.domain.media
Enum AgeRating
- java.lang.Object
-
- java.lang.Enum<AgeRating>
-
- nl.vpro.domain.media.AgeRating
-
- All Implemented Interfaces:
Serializable
,Comparable<AgeRating>
,XmlValued
,Displayable
public enum AgeRating extends Enum<AgeRating> implements Displayable, XmlValued
The NICAM age rating.- Since:
- 3.0
- Author:
- Michiel Meeuwissen
-
-
Field Summary
-
Fields inherited from interface nl.vpro.i18n.Displayable
NULL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getDisplayName()
Optional<String>
getIcon()
Optional<String>
getIconClass()
int
getIntValue()
String
getXmlValue()
static AgeRating
valueOf(int kort)
Returns the enum constant of this type with the specified name.static AgeRating
valueOf(String name)
Returns the enum constant of this type with the specified name.static AgeRating[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static AgeRating
xmlValueOf(String text)
-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface nl.vpro.i18n.Displayable
display, getDisplayName, getPluralDisplayName, getPluralDisplayName
-
-
-
-
Enum Constant Detail
-
_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 Detail
-
values
public static AgeRating[] 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 (AgeRating c : AgeRating.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgeRating 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
-
getXmlValue
public String getXmlValue()
- Specified by:
getXmlValue
in interfaceXmlValued
-
valueOf
public static AgeRating valueOf(int kort)
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:
kort
- 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
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceDisplayable
-
getDescription
public String getDescription()
-
getIcon
public Optional<String> getIcon()
- Specified by:
getIcon
in interfaceDisplayable
-
getIconClass
public Optional<String> getIconClass()
- Specified by:
getIconClass
in interfaceDisplayable
-
getIntValue
public int getIntValue()
-
-