Enum Class UnicodeWhitespace.Breaking

java.lang.Object
java.lang.Enum<UnicodeWhitespace.Breaking>
opennlp.tools.util.normalizer.UnicodeWhitespace.Breaking
All Implemented Interfaces:
Serializable, Comparable<UnicodeWhitespace.Breaking>, Constable
Enclosing class:
UnicodeWhitespace

public static enum UnicodeWhitespace.Breaking extends Enum<UnicodeWhitespace.Breaking>
Line-breaking behavior, mirroring the "Notes" column of the reference table.
  • Enum Constant Details

    • MAY_BREAK

      public static final UnicodeWhitespace.Breaking MAY_BREAK
      A break opportunity, but not a forced line break (e.g. SPACE).
    • LINE_BREAK

      public static final UnicodeWhitespace.Breaking LINE_BREAK
      A forced line or paragraph break (e.g. LF, LINE SEPARATOR).
    • NON_BREAKING

      public static final UnicodeWhitespace.Breaking NON_BREAKING
      A space that suppresses line breaking (e.g. NO-BREAK SPACE).
  • Method Details

    • values

      public static UnicodeWhitespace.Breaking[] 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 UnicodeWhitespace.Breaking 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