|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BookCategory>
org.crosswire.jsword.book.BookCategory
public enum BookCategory
An Enumeration of the possible types of Book.
The GNU Lesser General Public License for details.
Enum Constant Summary | |
---|---|
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. |
Field Summary | |
---|---|
private String |
externalName
|
private String |
name
The names of the BookCategory |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Field Detail |
---|
private transient String name
private transient String externalName
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic static BookCategory fromString(String name)
name
- the internal name of a BookCategory
public static BookCategory fromExternalString(String name)
name
- the external name of a BookCategory
public 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>
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |