Package com.ibm.icu.text
Enum BidiTransform.Order
- All Implemented Interfaces:
Serializable
,Comparable<BidiTransform.Order>
,java.lang.constant.Constable
- Enclosing class:
BidiTransform
BidiTransform.Order
indicates the order of text.
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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BidiTransform.Order
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 Details
-
LOGICAL
Constant indicating a logical order. -
VISUAL
Constant indicating a visual order.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-