- All Implemented Interfaces:
Serializable
,Comparable<ContainerState>
,java.lang.constant.Constable
An enumeration of the values possible in the
Container.state
attribute. This enumeration
isn't actually an enumeration in the XML schemas, but it has
a finite set of possible values and it's easier to work with
an enumeration in Java code than just a string.- Since:
- 2.31.6
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe container state when the container is depleted.The container state when the container has been discarded.The container state when the container is empty.The container state when the container's contents have been hybridized.The container state when the container is newly created.The container state when the container has something in it.The container state when the container only container reagents.The container state when the container's contents have been scanned. -
Field Summary
Modifier and TypeFieldDescriptionfinal String
The display name of the state.final int
The numeric state id for the container state, as stored in the database. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerState
Get the container state that has the given display name.toString()
value()
static ContainerState
Returns the enum constant of this type with the specified name.static ContainerState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EMPTY
The container state when the container is empty. -
POPULATED
The container state when the container has something in it. -
DEPLETED
The container state when the container is depleted. -
DISCARDED
The container state when the container has been discarded. -
REAGENT_ONLY
The container state when the container only container reagents. -
NEW
The container state when the container is newly created. -
HYBRIDIZED
The container state when the container's contents have been hybridized. -
SCANNED
The container state when the container's contents have been scanned.
-
-
Field Details
-
displayName
The display name of the state. -
stateId
public final int stateIdThe numeric state id for the container state, as stored in the database.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<ContainerState>
-
value
-
fromValue
Get the container state that has the given display name.- Parameters:
str
- The display name, as returned from Clarity calls.- Returns:
- The matching process state, or null if
str
is null. - Throws:
IllegalArgumentException
- ifstr
does not match the display name of a state.
-