Enum Class VImageDataType

java.lang.Object
java.lang.Enum<VImageDataType>
org.yamcs.studio.data.vtype.VImageDataType
All Implemented Interfaces:
Serializable, Comparable<VImageDataType>, Constable

public enum VImageDataType extends Enum<VImageDataType>
Data type description for VImage data.
  • Enum Constant Details

    • pvBoolean

      public static final VImageDataType pvBoolean
      Value has type boolean.
    • pvByte

      public static final VImageDataType pvByte
      Value has type byte.
    • pvShort

      public static final VImageDataType pvShort
      Value has type short.
    • pvInt

      public static final VImageDataType pvInt
      Value has type int.
    • pvLong

      public static final VImageDataType pvLong
      Value has type long.
    • pvUByte

      public static final VImageDataType pvUByte
      Value has type ubyte.
    • pvUShort

      public static final VImageDataType pvUShort
      Value has type ushort.
    • pvUInt

      public static final VImageDataType pvUInt
      Value has type uint.
    • pvULong

      public static final VImageDataType pvULong
      Value has type ulong.
    • pvFloat

      public static final VImageDataType pvFloat
      value has type float.
    • pvDouble

      public static final VImageDataType pvDouble
      Value has type double.
    • pvString

      public static final VImageDataType pvString
      Value has type string.
  • Method Details

    • values

      public static VImageDataType[] 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 VImageDataType 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
    • isInteger

      public boolean isInteger()
      Is this an integer (signed or unsigned). true if byte, short, int, long, ubyte, ushort, uint, or ulong.
      Returns:
      true if it is an integer type
    • isUInteger

      public boolean isUInteger()
      Is this an unsigned integer. true if ubyte, ushort, uint, or ulong.
      Returns:
      true if it is an unsigned integer type
    • isNumeric

      public boolean isNumeric()
      Is this a Java numeric type?
      Returns:
      true if the type is a Java numeric type. The numeric types are byte, short, int, long, float, and double.
    • isPrimitive

      public boolean isPrimitive()
      Is this a Java primitive type?
      Returns:
      true if the type is a Java primitive type. The numeric types and boolean are primitive types.
    • getVImageDataType

      public static VImageDataType getVImageDataType(String type)
      Get the VImageDataType for a string defining the type.
      Parameters:
      type - a character string defining the type
      Returns:
      the VImageDataType or null if an illegal type
    • toString

      public String toString()
      Overrides:
      toString in class Enum<VImageDataType>