|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jqurantree.arabic.ArabicText
org.jqurantree.orthography.Verse
public class Verse
The verse class represents one of the numbered verses in a
chapter. Each Chapter is divided into a sequence of verses
(ayat in Arabic), with a total of 6236 verses in the Holy Quran. The
verses contain the actual words used in the Quran. This class derives from
the ArabicText class.
| Field Summary |
|---|
| Fields inherited from class org.jqurantree.arabic.ArabicText |
|---|
buffer, characterCount, offset |
| Constructor Summary | |
|---|---|
Verse(int chapterNumber,
int verseNumber,
java.lang.String text)
Creates a new verse, used by JQuranTree when constructing the orthography model. |
|
| Method Summary | |
|---|---|
Chapter |
getChapter()
Gets the chapter that contains the verse. |
int |
getChapterNumber()
Gets the chapter number. |
Location |
getLocation()
Gets the verse's location. |
Token |
getToken(int tokenNumber)
Gets a token in the verse by token number. |
Token |
getToken(Location location)
Gets a token in the verse by Location reference. |
int |
getTokenCount()
Gets the number of tokens in the verse. |
java.lang.Iterable<Token> |
getTokens()
Gets an iterator used to enumerate over all tokens in the verse. |
int |
getVerseNumber()
Gets the verse number. |
java.lang.String |
toString()
Converts the verse to a string. |
| Methods inherited from class org.jqurantree.arabic.ArabicText |
|---|
fromBuckwalter, fromEncoding, fromUnicode, getCharacter, getCharacterType, getLength, getLetterCount, getSubstring, iterator, removeDiacritics, removeNonLetters, toBuckwalter, toSimpleEncoding, toString, toString, toUnicode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Verse(int chapterNumber,
int verseNumber,
java.lang.String text)
chapterNumber - the chapter number, between 1 and 114 inclusiveverseNumber - the verse number, a positive integertext - the Unicode text of the verse| Method Detail |
|---|
public Location getLocation()
public Chapter getChapter()
public int getChapterNumber()
public int getVerseNumber()
public java.lang.Iterable<Token> getTokens()
public Token getToken(Location location)
Location reference.
location - the token's location
public Token getToken(int tokenNumber)
tokenNumber - the token number, a positive integer
public int getTokenCount()
public java.lang.String toString()
string. The format used is the
location followed by the Buckwalter transliteration of the verse, For
example "(114:2) maliki {ln~aAsi".
toString in class ArabicTextstring representing the verseUnicodeEncoder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||