Package org.languagetool.rules
Enum ITSIssueType
- java.lang.Object
-
- java.lang.Enum<ITSIssueType>
-
- org.languagetool.rules.ITSIssueType
-
- All Implemented Interfaces:
Serializable
,Comparable<ITSIssueType>
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:
- ITS 2.0
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ITSIssueType
getIssueType(String name)
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)static ITSIssueType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ITSIssueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Terminology
public static final ITSIssueType Terminology
-
Mistranslation
public static final ITSIssueType Mistranslation
-
Omission
public static final ITSIssueType Omission
-
Untranslated
public static final ITSIssueType Untranslated
-
Addition
public static final ITSIssueType Addition
-
Duplication
public static final ITSIssueType Duplication
-
Inconsistency
public static final ITSIssueType Inconsistency
-
Grammar
public static final ITSIssueType Grammar
-
Legal
public static final ITSIssueType Legal
-
Register
public static final ITSIssueType Register
-
LocaleSpecificContent
public static final ITSIssueType LocaleSpecificContent
-
LocaleViolation
public static final ITSIssueType LocaleViolation
-
Style
public static final ITSIssueType Style
-
Characters
public static final ITSIssueType Characters
-
Misspelling
public static final ITSIssueType Misspelling
-
Typographical
public static final ITSIssueType Typographical
-
Formatting
public static final ITSIssueType Formatting
-
InconsistentEntities
public static final ITSIssueType InconsistentEntities
-
Numbers
public static final ITSIssueType Numbers
-
Markup
public static final ITSIssueType Markup
-
PatternProblem
public static final ITSIssueType PatternProblem
-
Whitespace
public static final ITSIssueType Whitespace
-
Internationalization
public static final ITSIssueType Internationalization
-
Length
public static final ITSIssueType Length
-
NonConformance
public static final ITSIssueType NonConformance
-
Uncategorized
public static final ITSIssueType Uncategorized
-
Other
public static final ITSIssueType Other
-
-
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(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 nameNullPointerException
- 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 classEnum<ITSIssueType>
-
-