|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<BioWell.LockMode>
net.sf.basedb.core.BioWell.LockMode
public static enum BioWell.LockMode
The lock mode for a well is determined by the plate's bio
plate type. See BioPlateType.getLockMode(). The lock-mode
is used to determine if the well can be assigned to a biomaterial
or not.
| Enum Constant Summary | |
|---|---|
LOCKED_AFTER_ADD
It is allowed to add biomaterial once to the well. |
|
LOCKED_AFTER_CREATE
It is allowed to add biomaterial once to the well, but it most be done at the same time the plate is creted. |
|
LOCKED_AFTER_MOVE
It is allowed to add biomaterial once to the well. |
|
UNLOCKED
The well is not locked. |
|
| Field Summary | |
|---|---|
private String |
displayValue
|
private int |
value
The integer value of this lock mode. |
private static Map<Integer,BioWell.LockMode> |
valueMapping
Maps an integer to a lock mode. |
| Method Summary | |
|---|---|
boolean |
canAdd(BioWell well)
Is it allowed to add (a different) biomaterial to the well? |
(package private) abstract boolean |
canAdd(BioWellData well)
|
boolean |
canClear(BioWell well)
Is it allowed to clear a well from biomaterial? |
(package private) abstract boolean |
canClear(BioWellData well)
|
static BioWell.LockMode |
fromValue(int value)
Get the Lock mode object when you know the integer code. |
int |
getValue()
Get the integer value that is used when storing a lock mode to the database. |
(package private) void |
onAdd(BioWellData well,
MeasuredBioMaterialData biomaterial)
Called when biomaterial is added to a well. |
(package private) void |
onClear(BioWellData well,
MeasuredBioMaterialData biomaterial)
Called when a well is cleared from an existing biomaterial. |
String |
toString()
|
static BioWell.LockMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BioWell.LockMode[] |
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 BioWell.LockMode UNLOCKED
public static final BioWell.LockMode LOCKED_AFTER_MOVE
BioWell.getOriginalBioMaterial().
public static final BioWell.LockMode LOCKED_AFTER_ADD
public static final BioWell.LockMode LOCKED_AFTER_CREATE
| Field Detail |
|---|
private static final Map<Integer,BioWell.LockMode> valueMapping
private final int value
private final String displayValue
| Method Detail |
|---|
public static BioWell.LockMode[] values()
for (BioWell.LockMode c : BioWell.LockMode.values()) System.out.println(c);
public static BioWell.LockMode 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 String toString()
toString in class Enum<BioWell.LockMode>public int getValue()
public static BioWell.LockMode fromValue(int value)
Lock mode object when you know the integer code.
value - The integer value
public boolean canClear(BioWell well)
well - The biowell to checkabstract boolean canClear(BioWellData well)
void onClear(BioWellData well,
MeasuredBioMaterialData biomaterial)
well - The well that is clearedbiomaterial - The biomaterial that is currently located on the wellpublic boolean canAdd(BioWell well)
well - A biowellBioWell.canAddBioMaterial()abstract boolean canAdd(BioWellData well)
void onAdd(BioWellData well,
MeasuredBioMaterialData biomaterial)
well - The well the biomaterial is added tobiomaterial - The biomaterial that is going to be added to the well
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||