Package com.helger.css.media
Enum ECSSMedium
- java.lang.Object
-
- java.lang.Enum<ECSSMedium>
-
- com.helger.css.media.ECSSMedium
-
- All Implemented Interfaces:
com.helger.commons.name.IHasName
,ICSSVersionAware
,Serializable
,Comparable<ECSSMedium>
public enum ECSSMedium extends Enum<ECSSMedium> implements ICSSVersionAware, com.helger.commons.name.IHasName
Defines all default CSS media types.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
for all media typesAURAL
For computer synthesized voice.BRAILLE
for blind peopleEMBOSSED
for blind peopleHANDHELD
for PDAsPRINT
for printingPROJECTION
for projectionSCREEN
for normal screen displaySPEECH
For computer synthesized voice.TTY
for text oriented devicesTV
for televisions
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ECSSMedium
getFromNameOrDefault(String sName, ECSSMedium eDefault)
static ECSSMedium
getFromNameOrNull(String sName)
ECSSVersion
getMinimumCSSVersion()
String
getName()
static ECSSMedium
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECSSMedium[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final ECSSMedium ALL
for all media types
-
AURAL
@DeprecatedInCSS21 public static final ECSSMedium AURAL
For computer synthesized voice. Deprecated in CSS 2.1. Is "speech" in CSS 3.
-
BRAILLE
public static final ECSSMedium BRAILLE
for blind people
-
EMBOSSED
public static final ECSSMedium EMBOSSED
for blind people
-
HANDHELD
public static final ECSSMedium HANDHELD
for PDAs
-
PRINT
public static final ECSSMedium PRINT
for printing
-
PROJECTION
public static final ECSSMedium PROJECTION
for projection
-
SCREEN
public static final ECSSMedium SCREEN
for normal screen display
-
SPEECH
public static final ECSSMedium SPEECH
For computer synthesized voice.
-
TTY
public static final ECSSMedium TTY
for text oriented devices
-
TV
public static final ECSSMedium TV
for televisions
-
-
Method Detail
-
values
public static ECSSMedium[] 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 (ECSSMedium c : ECSSMedium.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECSSMedium 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
-
getName
@Nonnull @Nonempty public String getName()
- Specified by:
getName
in interfacecom.helger.commons.name.IHasName
- Returns:
- the CSS medium name. Never
null
nor empty.
-
getMinimumCSSVersion
@Nonnull public ECSSVersion getMinimumCSSVersion()
- Specified by:
getMinimumCSSVersion
in interfaceICSSVersionAware
- Returns:
- The minimum CSS version that is required to read or write this
artifact. May not be
null
.
-
getFromNameOrNull
@Nullable public static ECSSMedium getFromNameOrNull(@Nullable String sName)
-
getFromNameOrDefault
@Nullable public static ECSSMedium getFromNameOrDefault(@Nullable String sName, @Nullable ECSSMedium eDefault)
-
-