Package net.sf.okapi.filters.xliff
Enum SdlXliffConfLevel
- java.lang.Object
-
- java.lang.Enum<SdlXliffConfLevel>
-
- net.sf.okapi.filters.xliff.SdlXliffConfLevel
-
- All Implemented Interfaces:
Serializable,Comparable<SdlXliffConfLevel>
public enum SdlXliffConfLevel extends Enum<SdlXliffConfLevel>
Confirmation level values used in SDLXLIFF: http://producthelp.sdl.com/SDK/FileTypeSupport/2017/html/06ecb14d-fe67-4387-bb9d-a25d242424f1.htm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROVED_SIGN_OFFAPPROVED_TRANSLATIONDRAFTREJECTED_SIGN_OFFREJECTED_TRANSLATIONTRANSLATEDUNSPECIFIED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SdlXliffConfLevelfromConfValue(String confValue)Returns the confirmation level associated with the given value.static SdlXliffConfLevelfromStateValue(String stateValue)Returns the confirmation level associated with the given state value.StringgetConfValue()Returns this confirmation level as a value that can be used in the 'conf' attribute of an <sdl:seg> element.StringgetStateValue()Returns this confirmation level as a state value that can be used in the 'state' attribute of a <target> or <bin-target> element.static booleanisValidConfValue(String confValue)Returns true if there is a confirmation level for the given value.static booleanisValidStateValue(String stateValue)Returns true if there is a confirmation level for the given state value.static SdlXliffConfLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static SdlXliffConfLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final SdlXliffConfLevel UNSPECIFIED
-
REJECTED_TRANSLATION
public static final SdlXliffConfLevel REJECTED_TRANSLATION
-
REJECTED_SIGN_OFF
public static final SdlXliffConfLevel REJECTED_SIGN_OFF
-
DRAFT
public static final SdlXliffConfLevel DRAFT
-
TRANSLATED
public static final SdlXliffConfLevel TRANSLATED
-
APPROVED_TRANSLATION
public static final SdlXliffConfLevel APPROVED_TRANSLATION
-
APPROVED_SIGN_OFF
public static final SdlXliffConfLevel APPROVED_SIGN_OFF
-
-
Method Detail
-
values
public static SdlXliffConfLevel[] 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 (SdlXliffConfLevel c : SdlXliffConfLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SdlXliffConfLevel 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
-
getConfValue
public String getConfValue()
Returns this confirmation level as a value that can be used in the 'conf' attribute of an <sdl:seg> element.
-
getStateValue
public String getStateValue()
Returns this confirmation level as a state value that can be used in the 'state' attribute of a <target> or <bin-target> element.
-
isValidConfValue
public static boolean isValidConfValue(String confValue)
Returns true if there is a confirmation level for the given value.
-
fromConfValue
public static SdlXliffConfLevel fromConfValue(String confValue)
Returns the confirmation level associated with the given value. Throws aIllegalArgumentExceptionif the value cannot be mapped to a confirmation level.
-
isValidStateValue
public static boolean isValidStateValue(String stateValue)
Returns true if there is a confirmation level for the given state value.
-
fromStateValue
public static SdlXliffConfLevel fromStateValue(String stateValue)
Returns the confirmation level associated with the given state value. Throws aIllegalArgumentExceptionif the state value cannot be mapped to a confirmation level.
-
-