Package com.ibm.icu.text
Enum BidiTransform.Order
- java.lang.Object
-
- java.lang.Enum<BidiTransform.Order>
-
- com.ibm.icu.text.BidiTransform.Order
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BidiTransform.Order>
- Enclosing class:
- BidiTransform
public static enum BidiTransform.Order extends java.lang.Enum<BidiTransform.Order>
indicates the order of text.BidiTransform.Order
This bidi transformation engine supports all possible combinations (4 in total) of input and output text order:
- {logical input, visual output}: unless the output direction is RTL,
this corresponds to a normal operation of the Bidi algorithm as
described in the Unicode Technical Report and implemented by
when the reordering mode is set toBidi
Bidi#REORDER_DEFAULT
. Visual RTL mode is not supported by
and is accomplished through reversing a visual LTR string,Bidi
- {visual input, logical output}: unless the input direction is RTL,
this corresponds to an "inverse bidi algorithm" in
with the reordering mode set toBidi
. Visual RTL mode is not not supported byBidi.REORDER_INVERSE_LIKE_DIRECT
and is accomplished through reversing a visual LTR string,Bidi
- {logical input, logical output}: if the input and output base
directions mismatch, this corresponds to the
implementation with the reordering mode set toBidi
; and if the input and output base directions are identical, the transformation engine will only handle character mirroring and Arabic shaping operations without reordering,Bidi.REORDER_RUNS_ONLY
- {visual input, visual output}: this reordering mode is not supported
by the
engine; it implies character mirroring, Arabic shaping, and - if the input/output base directions mismatch - string reverse operations.Bidi
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BidiTransform.Order
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BidiTransform.Order[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOGICAL
public static final BidiTransform.Order LOGICAL
Constant indicating a logical order.
-
VISUAL
public static final BidiTransform.Order VISUAL
Constant indicating a visual order.
-
-
Method Detail
-
values
public static BidiTransform.Order[] 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 (BidiTransform.Order c : BidiTransform.Order.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BidiTransform.Order valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-