Package net.sf.okapi.tm.pensieve.common
Enum TranslationUnitField
- java.lang.Object
-
- java.lang.Enum<TranslationUnitField>
-
- net.sf.okapi.tm.pensieve.common.TranslationUnitField
-
- All Implemented Interfaces:
Serializable,Comparable<TranslationUnitField>
public enum TranslationUnitField extends Enum<TranslationUnitField>
A field of a translation unit. These are things that are always stored vs metadata is optional.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SOURCESOURCE_CODESSOURCE_EXACTSOURCE_LANGTARGETTARGET_CODESTARGET_LANG
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TranslationUnitFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static TranslationUnitField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOURCE_EXACT
public static final TranslationUnitField SOURCE_EXACT
-
SOURCE
public static final TranslationUnitField SOURCE
-
TARGET
public static final TranslationUnitField TARGET
-
SOURCE_LANG
public static final TranslationUnitField SOURCE_LANG
-
TARGET_LANG
public static final TranslationUnitField TARGET_LANG
-
SOURCE_CODES
public static final TranslationUnitField SOURCE_CODES
-
TARGET_CODES
public static final TranslationUnitField TARGET_CODES
-
-
Method Detail
-
values
public static TranslationUnitField[] 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 (TranslationUnitField c : TranslationUnitField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TranslationUnitField 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
-
-