Package ca.phon.ipa

Enum Class PauseLength

java.lang.Object
java.lang.Enum<PauseLength>
ca.phon.ipa.PauseLength
All Implemented Interfaces:
Serializable, Comparable<PauseLength>, Constable

public enum PauseLength extends Enum<PauseLength>
Pause lengths
  • Enum Constant Details

  • Method Details

    • values

      public static PauseLength[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PauseLength valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • lengthFromString

      public static PauseLength lengthFromString(String text)
      Length from string
      Parameters:
      text - valid values must match the regex '\.{1,3}'
      Returns:
      the detected PauseLength
      Throws:
      IllegalArgumentException - if the given text is not a valid length string
    • getText

      public String getText()
      Get the length string for
      Returns:
      the text for this length