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

Quick Search    Search Deep

com.eireneh.bible.book
Class BasicVersion  view BasicVersion download BasicVersion.java

java.lang.Object
  extended bycom.eireneh.bible.book.Version
      extended bycom.eireneh.bible.book.BasicVersion

public class BasicVersion
extends Version

BasicVersion is the default and probably only implementation of the Version interface.
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:
D0.I0.T0

Field Summary
private  java.lang.String edition
          The edition of this version
private  java.lang.String initials
          The common initials of the version name
private  java.net.URL licence
          The URL of the distribution licence
private  java.lang.String name
          The name of the version
private  int open
          The openness of the version
private  java.util.Date pub
          The approximate date of first publishing
 
Fields inherited from class com.eireneh.bible.book.Version
GUESS_WORDS, SEPARATOR, STATUS_COMMERCIAL, STATUS_COPYABLE, STATUS_FREE, STATUS_PD, STATUS_UNKNOWN
 
Constructor Summary
protected BasicVersion(java.lang.String name, java.lang.String edition, java.lang.String initials, java.util.Date pub, int open, java.net.URL licence)
          Basic constructor
 
Method Summary
 java.lang.String getEdition()
          The edition of this version, for example "Anglicised" (NIV), "Stephanus" (Greek).
 java.util.Date getFirstPublished()
          The date of first publishing.
 java.lang.String getInitials()
          The initials of the version - how most people will know it, for example "NIV", "KJV"
 java.net.URL getLicence()
          Not sure about this one - Do we need a way of getting at the dist.
 java.lang.String getName()
          The name of the version, for example "King James Version" or "Bible in Basic English" or "Greek".
 int getOpenness()
          Is this version sold for commercial profit like the NIV, or kept open like the NET version.
 
Methods inherited from class com.eireneh.bible.book.Version
equals, getFullName, hashCode, isSameFamily, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
The name of the version


edition

private java.lang.String edition
The edition of this version


initials

private java.lang.String initials
The common initials of the version name


pub

private java.util.Date pub
The approximate date of first publishing


open

private int open
The openness of the version


licence

private java.net.URL licence
The URL of the distribution licence

Constructor Detail

BasicVersion

protected BasicVersion(java.lang.String name,
                       java.lang.String edition,
                       java.lang.String initials,
                       java.util.Date pub,
                       int open,
                       java.net.URL licence)
Basic constructor

Method Detail

getName

public java.lang.String getName()
The name of the version, for example "King James Version" or "Bible in Basic English" or "Greek". In general it should be possible to deduce the initials from the name by removing all the non-capital letters.

Specified by:
getName in class Version

getEdition

public java.lang.String getEdition()
The edition of this version, for example "Anglicised" (NIV), "Stephanus" (Greek). For 2 versions to be equal both the name and the edition must be equal.

Specified by:
getEdition in class Version

getInitials

public java.lang.String getInitials()
The initials of the version - how most people will know it, for example "NIV", "KJV"

Specified by:
getInitials in class Version

getFirstPublished

public java.util.Date getFirstPublished()
The date of first publishing. This does not need to be accurate and 2 versions can be considered equal even if they have different first publishing dates for that reason. In general "1 Jan 1970" means published in 1970, and so on.

Specified by:
getFirstPublished in class Version

getOpenness

public int getOpenness()
Is this version sold for commercial profit like the NIV, or kept open like the NET version.

Specified by:
getOpenness in class Version

getLicence

public java.net.URL getLicence()
Not sure about this one - Do we need a way of getting at the dist. licence? Are we going to be able to tie it down to a single Version policy like this?

Specified by:
getLicence in class Version