Package net.sf.okapi.lib.xliff2.core
Enum TargetState
- java.lang.Object
-
- java.lang.Enum<TargetState>
-
- net.sf.okapi.lib.xliff2.core.TargetState
-
- All Implemented Interfaces:
Serializable
,Comparable<TargetState>
public enum TargetState extends Enum<TargetState>
Possible values for thestate
attribute of a target content:INITIAL
,TRANSLATED
,REVIEWED
andFINAL
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FINAL
Target state: final.INITIAL
Target state: initial.REVIEWED
Target state: reviewed.TRANSLATED
Target state: translated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetState
fromString(String name)
Converts a given string representing the name of a target state into aTargetState
object.String
toString()
static TargetState
valueOf(String name)
Returns the enum constant of this type with the specified name.static TargetState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIAL
public static final TargetState INITIAL
Target state: initial.
-
TRANSLATED
public static final TargetState TRANSLATED
Target state: translated.
-
REVIEWED
public static final TargetState REVIEWED
Target state: reviewed.
-
FINAL
public static final TargetState FINAL
Target state: final.
-
-
Method Detail
-
values
public static TargetState[] 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 (TargetState c : TargetState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TargetState 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<TargetState>
-
fromString
public static TargetState fromString(String name)
Converts a given string representing the name of a target state into aTargetState
object.- Parameters:
name
- the name of the target state.- Returns:
- the object for the given name.
- Throws:
InvalidParameterException
- if the name is invalid.
-
-