Package com.caen.RFIDLibrary
Enum CAENRFIDReaderEventType
- java.lang.Object
-
- java.lang.Enum<CAENRFIDReaderEventType>
-
- com.caen.RFIDLibrary.CAENRFIDReaderEventType
-
- All Implemented Interfaces:
Serializable,Comparable<CAENRFIDReaderEventType>
public enum CAENRFIDReaderEventType extends Enum<CAENRFIDReaderEventType>
These enumeration represents all kind of event generated by the physical reader, when application requires to be acknowledge about all physical or emulated events notified by the reader. SeeCAENRFIDReader.SetEventMode(java.util.Set)method to enable or disable event generation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVT_TYPE_NOPNO Event (RFU, not used)EVT_TYPE_POWER_BUTTON_PRESSEDPower button has been pressedEVT_TYPE_TRIGGER_BUTTON_PRESSEDTrigger button has been pressedEVT_TYPE_UNDEFUndefined or unrecognized event (RFU, not used)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CAENRFIDReaderEventTypeenumFrom(int value)Gets the enumeration from its integer value.intvalue()The value for this enumeration.static CAENRFIDReaderEventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CAENRFIDReaderEventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVT_TYPE_NOP
public static final CAENRFIDReaderEventType EVT_TYPE_NOP
NO Event (RFU, not used)
-
EVT_TYPE_TRIGGER_BUTTON_PRESSED
public static final CAENRFIDReaderEventType EVT_TYPE_TRIGGER_BUTTON_PRESSED
Trigger button has been pressed
-
EVT_TYPE_POWER_BUTTON_PRESSED
public static final CAENRFIDReaderEventType EVT_TYPE_POWER_BUTTON_PRESSED
Power button has been pressed
-
EVT_TYPE_UNDEF
public static final CAENRFIDReaderEventType EVT_TYPE_UNDEF
Undefined or unrecognized event (RFU, not used)
-
-
Method Detail
-
values
public static CAENRFIDReaderEventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CAENRFIDReaderEventType c : CAENRFIDReaderEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CAENRFIDReaderEventType valueOf(String name)
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
-
value
public int value()
The value for this enumeration.- Returns:
- An integer representing this enumeration.
-
enumFrom
public static CAENRFIDReaderEventType enumFrom(int value)
Gets the enumeration from its integer value.- Parameters:
value- The integer value to parse.- Returns:
- A CAENRFIDReaderEventType representing the value passed in.
-
-