|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<BioMaterialEvent.Type> net.sf.basedb.core.BioMaterialEvent.Type
public static enum BioMaterialEvent.Type
The type of the event.
Enum Constant Summary | |
---|---|
CREATION
An event of this type created a biomaterial. |
|
HYBRIDIZATION
An event of this type created a hybridization. |
|
OTHER
An event of this type affected a single biomaterial in some way. |
Field Summary | |
---|---|
private String |
displayValue
|
private int |
value
|
private static Map<Integer,BioMaterialEvent.Type> |
valueMapping
Maps the integer that is stored in the database. |
Method Summary | |
---|---|
static BioMaterialEvent.Type |
fromValue(int value)
Get the BioMaterialEvent.Type object when you know the integer code. |
int |
getValue()
Get the integer value that is used when storing a BioMaterialEvent.Type
to the database. |
String |
toString()
|
static BioMaterialEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BioMaterialEvent.Type[] |
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 BioMaterialEvent.Type CREATION
public static final BioMaterialEvent.Type HYBRIDIZATION
public static final BioMaterialEvent.Type OTHER
Field Detail |
---|
private static final Map<Integer,BioMaterialEvent.Type> valueMapping
private final int value
private final String displayValue
Method Detail |
---|
public static BioMaterialEvent.Type[] values()
for (BioMaterialEvent.Type c : BioMaterialEvent.Type.values()) System.out.println(c);
public static BioMaterialEvent.Type 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 BioMaterialEvent.Type fromValue(int value)
BioMaterialEvent.Type
object when you know the integer code.
value
- The integer value.
public String toString()
toString
in class Enum<BioMaterialEvent.Type>
public int getValue()
BioMaterialEvent.Type
to the database.
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |