public enum BookCategory extends Enum<BookCategory>
The GNU Lesser General Public License for details.
Enum Constant and Description |
---|
BIBLE
Books that are Bibles
|
COMMENTARY
Books that are Commentaries
|
DAILY_DEVOTIONS
Books that are indexed by day.
|
DICTIONARY
Books that are Dictionaries
|
ESSAYS
Books that are just essays.
|
GENERAL_BOOK
Books that are just books.
|
GLOSSARY
Books that map words from one language to another.
|
IMAGES
Books that are predominately images.
|
MAPS
Books that are a collection of maps.
|
OTHER
Books that are not any of the above.
|
QUESTIONABLE
Books that are questionable.
|
Modifier and Type | Field and Description |
---|---|
private String |
externalName |
private String |
name
The names of the BookCategory
|
Modifier and Type | Method and Description |
---|---|
static BookCategory |
fromExternalString(String name)
Lookup method to convert from a String
|
static BookCategory |
fromInteger(int i)
Lookup method to convert from an integer
|
static BookCategory |
fromString(String name)
Lookup method to convert from a String
|
String |
getName() |
String |
toString() |
static BookCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BookCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BookCategory BIBLE
public static final BookCategory DICTIONARY
public static final BookCategory COMMENTARY
public static final BookCategory DAILY_DEVOTIONS
public static final BookCategory GLOSSARY
public static final BookCategory QUESTIONABLE
public static final BookCategory ESSAYS
public static final BookCategory IMAGES
public static final BookCategory MAPS
public static final BookCategory GENERAL_BOOK
public static final BookCategory OTHER
private transient String name
private transient String externalName
public static BookCategory[] values()
for (BookCategory c : BookCategory.values()) System.out.println(c);
public static BookCategory valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static BookCategory fromString(String name)
name
- the internal name of a BookCategorypublic static BookCategory fromExternalString(String name)
name
- the external name of a BookCategorypublic static BookCategory fromInteger(int i)
i
- the ordinal value of the BookCategory in this enumeration.public String getName()
public String toString()
toString
in class Enum<BookCategory>