Package nl.vpro.domain.media
Enum Class Region
- All Implemented Interfaces:
Serializable
,Comparable<Region>
,Constable
,Displayable
,org.meeuw.i18n.regions.Region
The region as used in
GeoRestriction
. The order wants to be from more to less restrictive.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.meeuw.i18n.regions.Region
org.meeuw.i18n.regions.Region.Type
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Not supported by VMVEuropean Union incl.EuropeNetherlandsNetherlands and communities in the Caribbean and Curaçao, St.Netherlands and communities in the CaribbeanIt can be handy to have a region value that effectively doesn't restrict anything. -
Field Summary
Fields inherited from interface nl.vpro.i18n.Displayable
NULL
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
getIcon()
getName()
org.meeuw.i18n.regions.Region.Type
getType()
static Region
Returns the enum constant of this class with the specified name.static Region
static Region
static Region[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface nl.vpro.i18n.Displayable
display, getDisplayName, getIconClass, getPluralDisplayName, getPluralDisplayName
Methods inherited from interface org.meeuw.i18n.regions.Region
getBundle, getLocalName, getName, getName, toLocale, toStringBuilder
-
Enum Constant Details
-
NL
Netherlands -
NLBES
Netherlands and communities in the Caribbean- Since:
- 5.6
-
NLALL
Netherlands and communities in the Caribbean and Curaçao, St. Maarten and Aruba- Since:
- 5.6
-
BENELUX
Deprecated.Not supported by VMVBelgium, Netherlands and Luxemburg -
EUROPE
Europe- Since:
- 5.6
-
EU
European Union incl. BES-gemeentes, Curaçao, Sint Maarten en Aruba- Since:
- 5.6
-
UNIVERSE
It can be handy to have a region value that effectively doesn't restrict anything. This way there is no need for null checks and things like that.- Since:
- 7.6
-
-
Field Details
-
RESTRICTED_REGIONS
-
-
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
-
valueOfOrNull
-
valueOfOrNullOrIllegalArgument
-
getCode
- Specified by:
getCode
in interfaceorg.meeuw.i18n.regions.Region
-
getType
public org.meeuw.i18n.regions.Region.Type getType()- Specified by:
getType
in interfaceorg.meeuw.i18n.regions.Region
-
getName
- Specified by:
getName
in interfaceorg.meeuw.i18n.regions.Region
-
getIcon
- Specified by:
getIcon
in interfaceDisplayable
- Specified by:
getIcon
in interfaceorg.meeuw.i18n.regions.Region
-
getDisplayName
- Specified by:
getDisplayName
in interfaceDisplayable
-