Package org.idpf.epubcheck.util.css
Enum CssGrammar.CssQuantity.Unit
- java.lang.Object
-
- java.lang.Enum<CssGrammar.CssQuantity.Unit>
-
- org.idpf.epubcheck.util.css.CssGrammar.CssQuantity.Unit
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CssGrammar.CssQuantity.Unit>
- Enclosing class:
- CssGrammar.CssQuantity
public static enum CssGrammar.CssQuantity.Unit extends java.lang.Enum<CssGrammar.CssQuantity.Unit>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateUnit()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CssGrammar.CssQuantity.UnitvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CssGrammar.CssQuantity.Unit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIMEN
public static final CssGrammar.CssQuantity.Unit DIMEN
-
PERCENTAGE
public static final CssGrammar.CssQuantity.Unit PERCENTAGE
-
LENGTH
public static final CssGrammar.CssQuantity.Unit LENGTH
-
EMS
public static final CssGrammar.CssQuantity.Unit EMS
-
EXS
public static final CssGrammar.CssQuantity.Unit EXS
-
ANGLE
public static final CssGrammar.CssQuantity.Unit ANGLE
-
TIME
public static final CssGrammar.CssQuantity.Unit TIME
-
FREQ
public static final CssGrammar.CssQuantity.Unit FREQ
-
RESOLUTION
public static final CssGrammar.CssQuantity.Unit RESOLUTION
-
NUMBER
public static final CssGrammar.CssQuantity.Unit NUMBER
-
INTEGER
public static final CssGrammar.CssQuantity.Unit INTEGER
-
REMS
public static final CssGrammar.CssQuantity.Unit REMS
-
-
Method Detail
-
values
public static CssGrammar.CssQuantity.Unit[] 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 (CssGrammar.CssQuantity.Unit c : CssGrammar.CssQuantity.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CssGrammar.CssQuantity.Unit valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-