public class BidiAttributes
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BidiAttributes.NumeralsShaping
Numerals; unspecified, national, nominal (default), contextual_national, contextual_nominal
|
static class |
BidiAttributes.TextOrientation
Text orientation; LTR (default), RTL, Contextual_LTR, or Contextual_RTL
|
static class |
BidiAttributes.TextShaping
Text shaping; unspecified, shaped, unshaped (default), or tashkeel_isolated
|
static class |
BidiAttributes.TextSymSwapping
Text Symmetric Swapping; Disabled, Enabled (default)
|
static class |
BidiAttributes.TextType
Text type; Logical (default), or Visual
|
Constructor and Description |
---|
BidiAttributes()
Default class constructor creates with the default initialization in place.
|
BidiAttributes(BidiAttributes.TextType type,
BidiAttributes.TextOrientation orientation)
Class constructor setting text type and orientation and assuming default values
for the rest of the attributes.
|
BidiAttributes(BidiAttributes.TextType type,
BidiAttributes.TextOrientation orientation,
BidiAttributes.TextShaping shaping,
BidiAttributes.NumeralsShaping numerals)
Class constructor setting all five attributes as passed parameters, and assuming
ON symmetric
swapping as default. |
BidiAttributes(BidiAttributes.TextType type,
BidiAttributes.TextOrientation orientation,
BidiAttributes.TextSymSwapping swapping,
BidiAttributes.TextShaping shaping,
BidiAttributes.NumeralsShaping numerals)
Class constructor setting all five attributes as passed parameters, and assuming symmetric
swapping as an enumeration value.
|
BidiAttributes(BidiAttributes.TextType type,
BidiAttributes.TextOrientation orientation,
boolean swapping)
Class constructor setting text type, orientation and symmetric swapping, and assuming default values
for the rest of the attributes.
|
BidiAttributes(BidiAttributes.TextType type,
BidiAttributes.TextOrientation orientation,
boolean swapping,
BidiAttributes.TextShaping shaping,
BidiAttributes.NumeralsShaping numerals)
Class constructor setting all five attributes as passed parameters, and assuming symmetric
swapping as boolean value.
|
BidiAttributes(java.lang.String bidiFlags)
Class constructor setting attributes using IBM Java SDK Bidi flag set as passed parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object attrs)
Compares the passed attributes with
this and returns true if identical |
boolean |
equalsIgnoreSwapping(BidiAttributes attrs)
Compares the passed attributes with
this ignoring the Symmetric Swapping field |
BidiAttributes.NumeralsShaping |
getNumeralsShaping()
returns the parameter representing numeral shaping
|
BidiAttributes.TextOrientation |
getTextOrientation()
returns the parameter representing orientation
|
BidiAttributes.TextShaping |
getTextShaping()
returns the parameter representing textShaping
|
BidiAttributes.TextSymSwapping |
getTextSymSwapping()
returns the parameter representing swapping
|
BidiAttributes.TextType |
getTextType()
returns the parameter representing textType
|
int |
hashCode() |
public BidiAttributes()
public BidiAttributes(BidiAttributes.TextType type, BidiAttributes.TextOrientation orientation) throws BidiTransformationException
type
- BidiAttributes.TextType
enumeration valueorientation
- BidiAttributes.TextOrientation
enumeration valueBidiTransformationException
- if text type and orientation combination is invalidpublic BidiAttributes(BidiAttributes.TextType type, BidiAttributes.TextOrientation orientation, boolean swapping) throws BidiTransformationException
type
- BidiAttributes.TextType
enumeration valueorientation
- BidiAttributes.TextOrientation
enumeration valueswapping
- BidiAttributes.TextSymSwapping
enumeration valueBidiTransformationException
- if initialization attributes are invalidpublic BidiAttributes(BidiAttributes.TextType type, BidiAttributes.TextOrientation orientation, boolean swapping, BidiAttributes.TextShaping shaping, BidiAttributes.NumeralsShaping numerals) throws BidiTransformationException
type
- BidiAttributes.TextType
enumeration valueorientation
- BidiAttributes.TextOrientation
enumeration valueswapping
- boolean for swapping On/Offshaping
- BidiAttributes.TextShaping
enumeration valuenumerals
- BidiAttributes.NumeralsShaping
enumeration valueBidiTransformationException
- if initialization attributes are invalidpublic BidiAttributes(BidiAttributes.TextType type, BidiAttributes.TextOrientation orientation, BidiAttributes.TextSymSwapping swapping, BidiAttributes.TextShaping shaping, BidiAttributes.NumeralsShaping numerals) throws BidiTransformationException
type
- BidiAttributes.TextType
enumeration valueorientation
- BidiAttributes.TextOrientation
enumeration valueswapping
- BidiAttributes.TextSymSwapping
enumeration valueshaping
- BidiAttributes.TextShaping
enumeration valuenumerals
- BidiAttributes.NumeralsShaping
enumeration valueBidiTransformationException
- if initialization attributes are invalidpublic BidiAttributes(BidiAttributes.TextType type, BidiAttributes.TextOrientation orientation, BidiAttributes.TextShaping shaping, BidiAttributes.NumeralsShaping numerals) throws BidiTransformationException
ON
symmetric
swapping as default.type
- BidiAttributes.TextType
enumeration valueorientation
- BidiAttributes.TextOrientation
enumeration valueshaping
- BidiAttributes.TextShaping
enumeration valuenumerals
- BidiAttributes.NumeralsShaping
enumeration valueBidiTransformationException
- if initialization attributes are invalidpublic BidiAttributes(java.lang.String bidiFlags) throws BidiTransformationException
bidiFlags
- String-based attributes according to IBM Java SDK. BidiFlags
BidiTransformationException
- if the flag set is invalidpublic final BidiAttributes.TextType getTextType()
public final BidiAttributes.TextOrientation getTextOrientation()
public final BidiAttributes.TextSymSwapping getTextSymSwapping()
public final BidiAttributes.TextShaping getTextShaping()
public final BidiAttributes.NumeralsShaping getNumeralsShaping()
public final boolean equalsIgnoreSwapping(BidiAttributes attrs)
this
ignoring the Symmetric Swapping fieldattrs
- BidiAttributes
to compare totrue
if identical BidiAttributes
public final boolean equals(java.lang.Object attrs)
this
and returns true if identicalequals
in class java.lang.Object
attrs
- BidiAttributes
to compare totrue
if identical BidiAttributes
public int hashCode()
hashCode
in class java.lang.Object