Enum Directionality
- All Implemented Interfaces:
Serializable, Comparable<Directionality>
Encodes info about the direction of the message.
It is used to implement the @code u:dir} functionality.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDirectionality determined from expression contents.Directionality inherited from the message or from the resolved value of the operand without requiring isolation of the expression value.Left-to-right directionality.Right-to-left directionality.Not initialized or unknown. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectionalityDetermines the directionality appropriate for a given locale.static DirectionalityReturns the enum constant of this type with the specified name.static Directionality[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Not initialized or unknown.No special processing will be used.
-
LTR
Left-to-right directionality. -
RTL
Right-to-left directionality. -
AUTO
Directionality determined from expression contents. -
INHERIT
Directionality inherited from the message or from the resolved value of the operand without requiring isolation of the expression value.
-
-
Constructor Details
-
Directionality
private Directionality()
-
-
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
-
of
Determines the directionality appropriate for a given locale.- Parameters:
locale- the locale to determine the directionality from.- Returns:
- the appropriate directionality for the locale given.
-