Enum ECSSVersion

  • All Implemented Interfaces:
    com.helger.commons.version.IHasVersion, Serializable, Comparable<ECSSVersion>

    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 Detail

      • 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
    • Method Detail

      • values

        public static ECSSVersion[] 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 (ECSSVersion c : ECSSVersion.values())
            System.out.println(c);
        
        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