Package com.helger.css
Enum ECSSMetaUnit
- java.lang.Object
-
- java.lang.Enum<ECSSMetaUnit>
-
- com.helger.css.ECSSMetaUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<ECSSMetaUnit>
public enum ECSSMetaUnit extends Enum<ECSSMetaUnit>
Enumeration containing all predefined CSS meta units.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSOLUTE_LENGTH
ANGLE
FLEX
FONT_RELATIVE_LENGTH
FREQUENZY
PERCENTAGE
RESOLUTION
TIME
VIEWPORT_RELATIVE_LENGTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLength()
boolean
isRelativeLength()
static ECSSMetaUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECSSMetaUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERCENTAGE
public static final ECSSMetaUnit PERCENTAGE
-
FONT_RELATIVE_LENGTH
public static final ECSSMetaUnit FONT_RELATIVE_LENGTH
-
VIEWPORT_RELATIVE_LENGTH
public static final ECSSMetaUnit VIEWPORT_RELATIVE_LENGTH
-
ABSOLUTE_LENGTH
public static final ECSSMetaUnit ABSOLUTE_LENGTH
-
ANGLE
public static final ECSSMetaUnit ANGLE
-
TIME
public static final ECSSMetaUnit TIME
-
FREQUENZY
public static final ECSSMetaUnit FREQUENZY
-
RESOLUTION
public static final ECSSMetaUnit RESOLUTION
-
FLEX
public static final ECSSMetaUnit FLEX
-
-
Method Detail
-
values
public static ECSSMetaUnit[] 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 (ECSSMetaUnit c : ECSSMetaUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECSSMetaUnit 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
-
isRelativeLength
public boolean isRelativeLength()
-
isLength
public boolean isLength()
-
-