Enum ITSIssueType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ITSIssueType>

    public enum ITSIssueType
    extends java.lang.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:
    ITS 2.0
    • Field Detail

      • name

        private final java.lang.String name
    • Constructor Detail

      • ITSIssueType

        private ITSIssueType()
      • ITSIssueType

        private ITSIssueType​(java.lang.String name)
    • Method Detail

      • values

        public static ITSIssueType[] 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 (ITSIssueType c : ITSIssueType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ITSIssueType 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 name
        java.lang.NullPointerException - if the argument is null
      • getIssueType

        public static ITSIssueType getIssueType​(java.lang.String name)
      • toString

        public java.lang.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 java.lang.Enum<ITSIssueType>