Enum ITSIssueType

java.lang.Object
java.lang.Enum<ITSIssueType>
org.languagetool.rules.ITSIssueType
All Implemented Interfaces:
Serializable, Comparable<ITSIssueType>, java.lang.constant.Constable

public enum ITSIssueType extends Enum<ITSIssueType>
Some constants for Localization Quality Issue Type from the Internationalization Tag Set (ITS) Version 2.0. Note that this class is internal to LanguageTool, it is public only for technical reasons.
Since:
2.5
See Also:
  • Enum Constant Details

  • Field Details

    • name

      private final String name
  • Constructor Details

    • ITSIssueType

      private ITSIssueType()
    • ITSIssueType

      private ITSIssueType(String name)
  • Method Details

    • values

      public static ITSIssueType[] 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 ITSIssueType 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
    • getIssueType

      public static ITSIssueType getIssueType(String name)
    • toString

      public String toString()
      Use this to get the name as it is used in the ITS 2.0 standard (namely lowercase and with hyphens, not camel case)
      Overrides:
      toString in class Enum<ITSIssueType>