Enum Length.Unit

java.lang.Object
java.lang.Enum<Length.Unit>
org.odftoolkit.odfdom.type.Length.Unit
All Implemented Interfaces:
Serializable, Comparable<Length.Unit>, java.lang.constant.Constable
Enclosing class:
Length

public static enum Length.Unit extends Enum<Length.Unit>
Measurement units for ODF datatype length
  • Enum Constant Details

  • Method Details

    • values

      public static Length.Unit[] 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 Length.Unit 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
    • unitInMillimiter

      public double unitInMillimiter()
      Returns:
      the length of the Unit in Millimeter
    • abbr

      public String abbr()
      Returns:
      the abbreviation of the Unit (e.g. cm for Centimeter)