public enum SdlXliffConfLevel extends Enum<SdlXliffConfLevel>
| Enum Constant and Description |
|---|
APPROVED_SIGN_OFF |
APPROVED_TRANSLATION |
DRAFT |
REJECTED_SIGN_OFF |
REJECTED_TRANSLATION |
TRANSLATED |
UNSPECIFIED |
| Modifier and Type | Method and Description |
|---|---|
static SdlXliffConfLevel |
fromConfValue(String confValue)
Returns the confirmation level associated with the given value.
|
static SdlXliffConfLevel |
fromStateValue(String stateValue)
Returns the confirmation level associated with the given state value.
|
String |
getConfValue()
Returns this confirmation level as a value that can be used in the 'conf' attribute
of an <sdl:seg> element.
|
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.
|
static boolean |
isValidConfValue(String confValue)
Returns true if there is a confirmation level for the given value.
|
static boolean |
isValidStateValue(String stateValue)
Returns true if there is a confirmation level for the given state value.
|
static SdlXliffConfLevel |
valueOf(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.
|
public static final SdlXliffConfLevel APPROVED_SIGN_OFF
public static final SdlXliffConfLevel APPROVED_TRANSLATION
public static final SdlXliffConfLevel DRAFT
public static final SdlXliffConfLevel REJECTED_SIGN_OFF
public static final SdlXliffConfLevel REJECTED_TRANSLATION
public static final SdlXliffConfLevel TRANSLATED
public static final SdlXliffConfLevel UNSPECIFIED
public static SdlXliffConfLevel[] values()
for (SdlXliffConfLevel c : SdlXliffConfLevel.values()) System.out.println(c);
public static SdlXliffConfLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getConfValue()
public String getStateValue()
public static boolean isValidConfValue(String confValue)
public static SdlXliffConfLevel fromConfValue(String confValue)
IllegalArgumentException if the value cannot be
mapped to a confirmation level.public static boolean isValidStateValue(String stateValue)
public static SdlXliffConfLevel fromStateValue(String stateValue)
IllegalArgumentException if the state value cannot be
mapped to a confirmation level.Copyright © 2022. All rights reserved.