Enum Class AlertDestination

Object
Enum<AlertDestination>
com.zebra.sdk.settings.AlertDestination
All Implemented Interfaces:
Serializable, Comparable<AlertDestination>, Constable

public enum AlertDestination extends Enum<AlertDestination>
Enumeration of the various alert destinations which can be set on Zebra Printers.
  • Enum Constant Details

  • Method Details

    • values

      public static AlertDestination[] 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

      public static AlertDestination valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDestinationAsSGDString

      public String 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 the destination. If the destination is invalid a SettingsException will be thrown.
      Parameters:
      destination - Name of one of the values of AlertDestination.
      Returns:
      AlertDestination based on the destination
      Throws:
      ZebraIllegalArgumentException - if destination is not a valid alert destination.