Enum ECSSVersion

java.lang.Object
java.lang.Enum<ECSSVersion>
com.helger.css.ECSSVersion
All Implemented Interfaces:
com.helger.commons.version.IHasVersion, Serializable, Comparable<ECSSVersion>, java.lang.constant.Constable

public enum ECSSVersion extends Enum<ECSSVersion> implements com.helger.commons.version.IHasVersion
Contains the different CSS versions that may be of relevance.
Author:
Philip Helger
  • Enum Constant Details

    • CSS10

      @DevelopersNote("No CSS parser is available for 1.0!") public static final ECSSVersion CSS10
    • CSS21

      @DevelopersNote("Up to version 4.x of ph-css a special CSS 2.1 parser was available. Now it is the same as CSS 3.0") public static final ECSSVersion CSS21
    • CSS30

      public static final ECSSVersion CSS30
  • Field Details

  • Method Details

    • values

      public static ECSSVersion[] 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 ECSSVersion 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
    • getVersion

      @Nonnull public com.helger.commons.version.Version getVersion()
      Specified by:
      getVersion in interface com.helger.commons.version.IHasVersion
    • getVersionString

      @Nonnull public String getVersionString()