Package net.sf.okapi.filters.xliff
Enum Parameters.SegmentationType
- java.lang.Object
-
- java.lang.Enum<Parameters.SegmentationType>
-
- net.sf.okapi.filters.xliff.Parameters.SegmentationType
-
- All Implemented Interfaces:
Serializable,Comparable<Parameters.SegmentationType>
- Enclosing class:
- Parameters
public static enum Parameters.SegmentationType extends Enum<Parameters.SegmentationType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASNEEDEDOnly use segments if we have more than one segment in the translation.NOTSEGMENTEDNever use segmentation in the output.ORIGINALUse segmented target if the original trans-unit was segmented.SEGMENTEDAlways use segmented target regardless of the original trans-unit.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<Parameters.SegmentationType>byValue(int value)intgetValue()static Parameters.SegmentationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Parameters.SegmentationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORIGINAL
public static final Parameters.SegmentationType ORIGINAL
Use segmented target if the original trans-unit was segmented.
-
SEGMENTED
public static final Parameters.SegmentationType SEGMENTED
Always use segmented target regardless of the original trans-unit.
-
NOTSEGMENTED
public static final Parameters.SegmentationType NOTSEGMENTED
Never use segmentation in the output.
-
ASNEEDED
public static final Parameters.SegmentationType ASNEEDED
Only use segments if we have more than one segment in the translation.
-
-
Method Detail
-
values
public static Parameters.SegmentationType[] 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 (Parameters.SegmentationType c : Parameters.SegmentationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Parameters.SegmentationType 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
-
getValue
public int getValue()
-
byValue
public static Optional<Parameters.SegmentationType> byValue(int value)
-
-