|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jqurantree.orthography.Location
public class Location
The location of an element in the orthography model, consisting of a chapter
number, verse number and token number. A 1-based numbering scheme is used, so
that the first chapter, first verse or first token will have number 1. Each
element in the orthography model has a getLocation() accessor
which returns a Location object that specifies the current
location.
| Constructor Summary | |
|---|---|
Location(int chapterNumber)
Creates a new location which references a chapter. |
|
Location(int chapterNumber,
int verseNumber)
Creates a new location which references a verse within a chapter. |
|
Location(int chapterNumber,
int verseNumber,
int tokenNumber)
Creates a new location which references a token within a verse. |
|
| Method Summary | |
|---|---|
int |
getChapterNumber()
Gets the chapter number. |
int |
getTokenNumber()
Gets the token number. |
int |
getVerseNumber()
Gets the verse number. |
java.lang.String |
toString()
Gets a string representation of the location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Location(int chapterNumber)
chapterNumber - an integer value between 1 and 114 inclusive
public Location(int chapterNumber,
int verseNumber)
chapterNumber - an integer value between 1 and 114 inclusiveverseNumber - the number of the verse within the chapter
public Location(int chapterNumber,
int verseNumber,
int tokenNumber)
chapterNumber - an integer value between 1 and 114 inclusiveverseNumber - the number of the verse within the chaptertokenNumber - the number of the token within the verse| Method Detail |
|---|
public int getChapterNumber()
public int getVerseNumber()
public int getTokenNumber()
public java.lang.String toString()
string representation of the location. For example
(81:3:2) represents chapter 81, verse 3, token 2.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||