Enum Class ProfileData.DeviceType

java.lang.Object
java.lang.Enum<ProfileData.DeviceType>
xal.extension.wirescan.profile.ProfileData.DeviceType
All Implemented Interfaces:
Serializable, Comparable<ProfileData.DeviceType>, Constable
Enclosing class:
ProfileData

public static enum ProfileData.DeviceType extends Enum<ProfileData.DeviceType>

Enumeration of known profile measurement device types.

NOTE:
Currently this class is not used.

Author:
Christopher K. Allen
  • Enum Constant Details

  • Method Details

    • values

      public static ProfileData.DeviceType[] 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 ProfileData.DeviceType 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
    • getTypeId

      public String getTypeId()
      Return the device type identifier string corresponding to this type.
      Returns:
      device type identifier string
    • typeFromDeviceId

      public static ProfileData.DeviceType typeFromDeviceId(String strDevId)
      Return the device type which is inferred from the given device identifier string. Specifically, we assume that the device identifier string strDevId is prefixed by the (two-character) device type string. If the first two characters of strDevId are not a recognized device type identifier string, the device type UNKNOWN is returned.
      Parameters:
      strDevId - device identifier string
      Returns:
      DeviceType object corresponding to given device id