org.crosswire.jsword.book
Class Openness

java.lang.Object
  extended by org.crosswire.jsword.book.Openness
All Implemented Interfaces:
Serializable

public class Openness
extends Object
implements Serializable

A definition of how open a Bible is. Can is be freely copied or is it proprietary.

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.

Version:
$Id: Openness.java,v 1.11 2005/01/24 23:26:59 dmsmith Exp $
Author:
Joe Walker [joe at eireneh dot com]
See Also:
Licence, Serialized Form

Field Summary
static Openness COMMERCIAL
          Is the data sold for commercial profit
static Openness COPYABLE
          Is the data freely redistributable
static Openness FREE
          Does the data have a licence that permits free use
private  String name
          The name of the Openness
private static int nextObj
           
private  int obj
           
static Openness PD
          If the data free of copyright restrictions
private static long serialVersionUID
          Serialization ID
static Openness UNKNOWN
          If the data of unknown distribution status
private static Openness[] VALUES
           
 
Constructor Summary
private Openness(MsgBase msg)
          Prevent anyone else from doing this
 
Method Summary
 boolean equals(Object o)
          Prevent subclasses from overriding canonical identity based Object methods
static Openness fromInteger(int i)
          Lookup method to convert from an integer
static Openness fromString(String name)
          Lookup method to convert from a String
 int hashCode()
          Prevent subclasses from overriding canonical identity based Object methods
(package private)  Object readResolve()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final Openness UNKNOWN
If the data of unknown distribution status


PD

public static final Openness PD
If the data free of copyright restrictions


FREE

public static final Openness FREE
Does the data have a licence that permits free use


COPYABLE

public static final Openness COPYABLE
Is the data freely redistributable


COMMERCIAL

public static final Openness COMMERCIAL
Is the data sold for commercial profit


name

private String name
The name of the Openness


nextObj

private static int nextObj

obj

private final int obj

VALUES

private static final Openness[] VALUES

serialVersionUID

private static final long serialVersionUID
Serialization ID

See Also:
Constant Field Values
Constructor Detail

Openness

private Openness(MsgBase msg)
Prevent anyone else from doing this

Method Detail

fromString

public static Openness fromString(String name)
Lookup method to convert from a String


fromInteger

public static Openness fromInteger(int i)
Lookup method to convert from an integer


equals

public final boolean equals(Object o)
Prevent subclasses from overriding canonical identity based Object methods

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public final int hashCode()
Prevent subclasses from overriding canonical identity based Object methods

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object

readResolve

Object readResolve()

Copyright ? 2003-2004