Package net.sf.okapi.common.annotation
Enum IssueType
- java.lang.Object
-
- java.lang.Enum<IssueType>
-
- net.sf.okapi.common.annotation.IssueType
-
- All Implemented Interfaces:
Serializable,Comparable<IssueType>
public enum IssueType extends Enum<IssueType>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringmapToITS(IssueType issueType)Maps a given Issue type to an ITS issue type.static IssueTypevalueOf(String name)Returns the enum constant of this type with the specified name.static IssueType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MISSING_TARGETTU
public static final IssueType MISSING_TARGETTU
-
MISSING_TARGETSEG
public static final IssueType MISSING_TARGETSEG
-
EXTRA_TARGETSEG
public static final IssueType EXTRA_TARGETSEG
-
EMPTY_TARGETSEG
public static final IssueType EMPTY_TARGETSEG
-
EMPTY_SOURCESEG
public static final IssueType EMPTY_SOURCESEG
-
MISSING_LEADINGWS
public static final IssueType MISSING_LEADINGWS
-
MISSINGORDIFF_LEADINGWS
public static final IssueType MISSINGORDIFF_LEADINGWS
-
EXTRA_LEADINGWS
public static final IssueType EXTRA_LEADINGWS
-
EXTRAORDIFF_LEADINGWS
public static final IssueType EXTRAORDIFF_LEADINGWS
-
MISSING_TRAILINGWS
public static final IssueType MISSING_TRAILINGWS
-
MISSINGORDIFF_TRAILINGWS
public static final IssueType MISSINGORDIFF_TRAILINGWS
-
EXTRA_TRAILINGWS
public static final IssueType EXTRA_TRAILINGWS
-
EXTRAORDIFF_TRAILINGWS
public static final IssueType EXTRAORDIFF_TRAILINGWS
-
TARGET_SAME_AS_SOURCE
public static final IssueType TARGET_SAME_AS_SOURCE
-
MISSING_CODE
public static final IssueType MISSING_CODE
-
EXTRA_CODE
public static final IssueType EXTRA_CODE
-
SUSPECT_CODE
public static final IssueType SUSPECT_CODE
-
UNEXPECTED_PATTERN
public static final IssueType UNEXPECTED_PATTERN
-
SUSPECT_PATTERN
public static final IssueType SUSPECT_PATTERN
-
SUSPECT_NUMBER
public static final IssueType SUSPECT_NUMBER
-
SUSPECT_DATE_TIME
public static final IssueType SUSPECT_DATE_TIME
-
SOURCE_LENGTH
public static final IssueType SOURCE_LENGTH
-
TARGET_LENGTH
public static final IssueType TARGET_LENGTH
-
ALLOWED_CHARACTERS
public static final IssueType ALLOWED_CHARACTERS
-
TERMINOLOGY
public static final IssueType TERMINOLOGY
-
LANGUAGETOOL_ERROR
public static final IssueType LANGUAGETOOL_ERROR
-
OTHER
public static final IssueType OTHER
-
-
Method Detail
-
values
public static IssueType[] 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 (IssueType c : IssueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IssueType 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
-
-