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>, 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
  • Enum Constant Details

    • 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 Details

    • values

      public static ECSSMedium[] 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

      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 name
      NullPointerException - if the argument is null
    • getName

      @Nonnull @Nonempty public String getName()
      Specified by:
      getName in interface com.helger.commons.name.IHasName
      Returns:
      the CSS medium name. Never null nor empty.
    • getMinimumCSSVersion

      @Nonnull public ECSSVersion getMinimumCSSVersion()
      Specified by:
      getMinimumCSSVersion in interface ICSSVersionAware
      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)