public final enum

InsertionState

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.cradle.InsertionState

Class Overview

Enumerative representing an insertion state depending on the device's position.

Summary

Enum Values
InsertionState  DEVICE_INSERTION_NOT_SUPPORTED  Device insertion into the Cradle are not supported. 
InsertionState  EXTRACTED  Device has been extracted from the Cradle. 
InsertionState  INSERTED_CORRECTLY  Device is correctly inserted into the Cradle. 
InsertionState  INSERTED_WRONGLY  Device has been wrongly inserted into the Cradle. 
InsertionState  INSERTION_UNKNOWN  Unknown Device state related to Cradle. 
Public Methods
static InsertionState fromInt(int n)
Retrieves the corresponding InsertionState value, from a valid integer.
int toInt()
Converts the InsertionState enum to its integer representing value.
String toString()
static InsertionState valueOf(String name)
final static InsertionState[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final InsertionState DEVICE_INSERTION_NOT_SUPPORTED

Added in revision 16

Device insertion into the Cradle are not supported.

public static final InsertionState EXTRACTED

Added in revision 16

Device has been extracted from the Cradle.

public static final InsertionState INSERTED_CORRECTLY

Added in revision 16

Device is correctly inserted into the Cradle.

public static final InsertionState INSERTED_WRONGLY

Added in revision 16

Device has been wrongly inserted into the Cradle.

public static final InsertionState INSERTION_UNKNOWN

Added in revision 16

Unknown Device state related to Cradle.

Public Methods

public static InsertionState fromInt (int n)

Added in revision 16

Retrieves the corresponding InsertionState value, from a valid integer.

Parameters
n int
Returns
  • InsertionState the corresponding one.

public int toInt ()

Added in revision 16

Converts the InsertionState enum to its integer representing value.

Returns
  • int

public String toString ()

public static InsertionState valueOf (String name)

Added in revision 16

public static final InsertionState[] values ()

Added in revision 16