|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jqurantree.arabic.ArabicCharacter
public class ArabicCharacter
An ArabicCharacter is a single letter or Quranic symbol within
ArabicText, including any attached diacritics.
Instances of this class are immutable and cannot be changed. The
getType() method returns the character's type, such as Alif
or Ba.
Methods including isFatha() and isDamma() test for the
presence of diacritics. The ArabicCharacter can be converted to
plain text using the toString() or toString(EncodingType)
methods.
| Method Summary | |
|---|---|
int |
getDiacriticCount()
Gets the number of diacritics attached to the character. |
CharacterType |
getType()
Gets the CharacterType of the character, such as Alif or
Ba. |
boolean |
isAlifKhanjareeya()
Determines if Alif Khanjareeya is attached. |
boolean |
isDamma()
Determines if a Damma is attached. |
boolean |
isDammatan()
Determines if Dammatan are attached. |
boolean |
isFatha()
Determines if a Fatha is attached. |
boolean |
isFathatan()
Determines if Fathatan are attached. |
boolean |
isHamzaAbove()
Determines if a Hamza is present above the character. |
boolean |
isHamzaBelow()
Determines if a Hamza is present below the character. |
boolean |
isHamzatWasl()
Determines if Hamzat Wasl is attached. |
boolean |
isKasra()
Determines if a Kasra is attached. |
boolean |
isKasratan()
Determines if Kasratan are attached. |
boolean |
isLetter()
Determines if the character is an Arabic letter. |
boolean |
isMaddah()
Determines if a Maddah is attached. |
boolean |
isShadda()
Determines if a Shadda is attached. |
boolean |
isSingleDiacritic(DiacriticType diacriticType)
Determines if only a single diacritic is attached. |
boolean |
isSukun()
Determines if a Sukun is attached. |
java.lang.String |
toBuckwalter()
Converts the character to a string using Buckwalter
transliteration. |
java.lang.String |
toSimpleEncoding()
Converts the character to a string using simple encoding. |
java.lang.String |
toString()
Converts the character to a string using the default
encoding scheme. |
java.lang.String |
toString(EncodingType encodingType)
Converts the character to a string using the specified
encoding type. |
java.lang.String |
toUnicode()
Converts the character to Unicode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public CharacterType getType()
CharacterType of the character, such as Alif or
Ba.
public boolean isFatha()
true if a Fatha is attached;
false otherwise.public boolean isDamma()
true if a Damma is attached;
false otherwise.public boolean isKasra()
true if a Kasra is attached;
false otherwise.public boolean isFathatan()
true if Fathatan are attached;
false otherwise.public boolean isDammatan()
true if Dammatan are attached;
false otherwise.public boolean isKasratan()
true if Kasratan are attached;
false otherwise.public boolean isShadda()
true if a Shadda is attached;
false otherwise.public boolean isSukun()
true if a Sukun is attached;
false otherwise.public boolean isMaddah()
true if a Maddah is attached;
false otherwise.public boolean isHamzaAbove()
true if a Hamza is present above the
character; false otherwise.public boolean isHamzaBelow()
true if a Hamza is present below the
character; false otherwise.public boolean isHamzatWasl()
true if Hamzat Wasl is attached;
false otherwise.public boolean isAlifKhanjareeya()
true if Alif Khanjareeya is attached;
false otherwise.public boolean isSingleDiacritic(DiacriticType diacriticType)
diacriticType - the single diacritic
true if the character has only the specified
diacritic and no others; false otherwise.public int getDiacriticCount()
public boolean isLetter()
true if the character is an Arabic letter, and not a
Quranic symbol; false otherwise.public java.lang.String toString()
string using the default
encoding scheme. For Arabic characters, the default encoding is simple
encoding.
toString in class java.lang.Objectpublic java.lang.String toString(EncodingType encodingType)
string using the specified
encoding type.
public java.lang.String toUnicode()
ArabicCharacter. A
string is returned and not a char since
a single Arabic letter with diacritics is represented by several
characters in Unicode.public java.lang.String toBuckwalter()
string using Buckwalter
transliteration.
public java.lang.String toSimpleEncoding()
string using simple encoding.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||