Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

docs.future.translation
Class Strongs  view Strongs download Strongs.java

java.lang.Object
  extended bydocs.future.translation.Strongs

public class Strongs
extends java.lang.Object

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:
Project B 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, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.

Version:
$Id:$

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(int type, int number)
          Create a Strongs number from a type and a number
Strongs(java.lang.String desc)
          Create a Strongs number from an OLB descriptive string.
 
Method Summary
 java.lang.String getDescription()
          A very short description of the Strongs number
 int getNumber()
           
 java.lang.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.
 java.lang.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

HEBREW

public static final int HEBREW
This is a Hebrew word

See Also:
Constant Field Values

GREEK

public static final int GREEK
This is a Greek word

See Also:
Constant Field Values

PARSING

public static final int PARSING
This is a Parsing note

See Also:
Constant Field Values

GREEK_MAX

public static final int GREEK_MAX
This largest legal value for a Greek number

See Also:
Constant Field Values

HEBREW_MAX

public static final int HEBREW_MAX
This largest legal value for a Hebrew number

See Also:
Constant Field Values

type

private int type
The type of this Strongs number


number

private int number
The actual number itself

Constructor Detail

Strongs

public Strongs(java.lang.String desc)
Create a Strongs number from an OLB descriptive string.


Strongs

public Strongs(int type,
               int number)
Create a Strongs number from a type and a number

Method Detail

getOLBName

public java.lang.String getOLBName()
The string that would be used by the On-Line Bible to describe this number


getDescription

public java.lang.String getDescription()
A very short description of the Strongs number


toString

public java.lang.String toString()
Default to returning the OLB name for this number


getType

public int getType()

getNumber

public int getNumber()

isGreek

public boolean isGreek()
Is this number a Greek one?


isHebrew

public boolean isHebrew()
Is this number a Hebrew one?


isParsing

public boolean isParsing()
Is this number a Parsing one?


set

private void set(int type,
                 int number)
Create a Strongs number from a type and a number. This is private since it should only be called from a constructor to keep this class immutable.