Package com.helger.css.media
Enum ECSSMedium
- All Implemented Interfaces:
com.helger.commons.name.IHasName,ICSSVersionAware,Serializable,Comparable<ECSSMedium>,java.lang.constant.Constable
public enum ECSSMedium
extends Enum<ECSSMedium>
implements ICSSVersionAware, com.helger.commons.name.IHasName
Defines all default CSS media types.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionfor all media typesFor computer synthesized voice.for blind peoplefor blind peoplefor PDAsfor printingfor projectionfor normal screen displayFor computer synthesized voice.for text oriented devicesfor televisions -
Method Summary
Modifier and TypeMethodDescriptionstatic ECSSMediumgetFromNameOrDefault(String sName, ECSSMedium eDefault) static ECSSMediumgetFromNameOrNull(String sName) getName()static ECSSMediumReturns 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 Details
-
ALL
for all media types -
AURAL
For computer synthesized voice. Deprecated in CSS 2.1. Is "speech" in CSS 3. -
BRAILLE
for blind people -
EMBOSSED
for blind people -
HANDHELD
for PDAs -
PRINT
for printing -
PROJECTION
for projection -
SCREEN
for normal screen display -
SPEECH
For computer synthesized voice. -
TTY
for text oriented devices -
TV
for televisions
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
- Specified by:
getNamein interfacecom.helger.commons.name.IHasName- Returns:
- the CSS medium name. Never
nullnor empty.
-
getMinimumCSSVersion
- Specified by:
getMinimumCSSVersionin interfaceICSSVersionAware- Returns:
- The minimum CSS version that is required to read or write this
artifact. May not be
null.
-
getFromNameOrNull
-
getFromNameOrDefault
@Nullable public static ECSSMedium getFromNameOrDefault(@Nullable String sName, @Nullable ECSSMedium eDefault)
-