|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.Strongs
public class Strongs
Strongs is a convenience way of recording a Strongs number instead of using a String with a number in it.
A Strongs number can not be a number because Hebrew and Greek numbers are distinguished only by the Hebrew having a 0 at the start.
The class is immutable.
Numbers that exist:
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence
Field Summary | |
---|---|
static int |
GREEK
This is a Greek word |
static int |
GREEK_MAX
This largest legal value for a Greek number |
static int |
HEBREW
This is a Hebrew word |
static int |
HEBREW_MAX
This largest legal value for a Hebrew number |
private int |
number
The actual number itself |
static int |
PARSING
This is a Parsing note |
private int |
type
The type of this Strongs number |
Constructor Summary | |
---|---|
Strongs(org.jdom.Element w)
Work out what the Strongs number is from the W element |
|
Strongs(int type,
int number)
Create a Strongs number from a type and a number |
|
Strongs(String desc)
Create a Strongs number from an OLB descriptive string. |
Method Summary | |
---|---|
String |
getDescription()
A very short description of the Strongs number |
int |
getNumber()
|
String |
getOLBName()
The string that would be used by the On-Line Bible to describe this number |
int |
getType()
|
boolean |
isGreek()
Is this number a Greek one? |
boolean |
isHebrew()
Is this number a Hebrew one? |
boolean |
isParsing()
Is this number a Parsing one? |
private void |
set(int type,
int number)
Create a Strongs number from a type and a number. |
String |
toString()
Default to returning the OLB name for this number |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int HEBREW
public static final int GREEK
public static final int PARSING
public static final int GREEK_MAX
public static final int HEBREW_MAX
private int type
private int number
Constructor Detail |
---|
public Strongs(String desc) throws BookException
desc
- The OLB style descriptive string
BookException
public Strongs(int type, int number) throws BookException
type
- 0=HEBREW, 1=GREEK, 2=PARSINGnumber
- The strongs number
BookException
public Strongs(org.jdom.Element w) throws BookException
w
- The element to investigate
BookException
Method Detail |
---|
public String getOLBName()
public String getDescription()
public String toString()
toString
in class Object
public int getType()
public int getNumber()
public boolean isGreek()
public boolean isHebrew()
public boolean isParsing()
private void set(int type, int number) throws BookException
type
- 0=HEBREW, 1=GREEK, 2=PARSINGnumber
- The strongs number
BookException
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |