Package com.zebra.sdk.settings
Enum Class AlertDestination
- All Implemented Interfaces:
Serializable,Comparable<AlertDestination>,Constable
Enumeration of the various alert destinations which can be set on Zebra Printers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlert Destination 'Bluetooth'Alert Destination 'E-Mail'Alert Destination 'HTTP-POST'Alert Destination 'Parallel'Alert Destination 'SDK'Alert Destination 'Serial'Alert Destination 'SNMP'Alert Destination 'TCP'Alert Destination 'UDP'Alert Destination 'USB' -
Method Summary
Modifier and TypeMethodDescriptionstatic AlertDestinationcreateAlertDestination(String destination) Creates an AlertDestination based on thedestination.Returns the String representation of the alert destination.static AlertDestinationReturns the enum constant of this class with the specified name.static AlertDestination[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SERIAL
Alert Destination 'Serial' -
PARALLEL
Alert Destination 'Parallel' -
EMAIL
Alert Destination 'E-Mail' -
TCP
Alert Destination 'TCP' -
UDP
Alert Destination 'UDP' -
SNMP
Alert Destination 'SNMP' -
USB
Alert Destination 'USB' -
HTTP
Alert Destination 'HTTP-POST' -
BLUETOOTH
Alert Destination 'Bluetooth' -
SDK
Alert Destination 'SDK'
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getDestinationAsSGDString
Returns the String representation of the alert destination.- Returns:
- String The alert destination as a string required for SET-GET-DO.
-
createAlertDestination
public static AlertDestination createAlertDestination(String destination) throws ZebraIllegalArgumentException Creates an AlertDestination based on thedestination. If thedestinationis invalid a SettingsException will be thrown.- Parameters:
destination- Name of one of the values of AlertDestination.- Returns:
- AlertDestination based on the
destination - Throws:
ZebraIllegalArgumentException- ifdestinationis not a valid alert destination.
-