Package com.helger.css
Enum ECSSVersion
- java.lang.Object
-
- java.lang.Enum<ECSSVersion>
-
- com.helger.css.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
-
-
Field Summary
Fields Modifier and Type Field Description static ECSSVersion
LATEST
Latest version is CSS 3.0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.helger.commons.version.Version
getVersion()
String
getVersionString()
static ECSSVersion
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECSSVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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
-
CSS30
public static final ECSSVersion CSS30
-
-
Field Detail
-
LATEST
@Nonnull public static final ECSSVersion LATEST
Latest version is CSS 3.0
-
-
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 nameNullPointerException
- if the argument is null
-
getVersion
@Nonnull public com.helger.commons.version.Version getVersion()
- Specified by:
getVersion
in interfacecom.helger.commons.version.IHasVersion
-
-