Enum Class CAUVItemID

java.lang.Object
java.lang.Enum<CAUVItemID>
com.io7m.cardant.protocol.inventory.cb.internal.CAUVItemID
All Implemented Interfaces:
CAProtocolMessageValidatorType<CAItemID,com.io7m.cedarbridge.runtime.api.CBUUID>, Serializable, Comparable<CAUVItemID>, Constable

public enum CAUVItemID extends Enum<CAUVItemID> implements CAProtocolMessageValidatorType<CAItemID,com.io7m.cedarbridge.runtime.api.CBUUID>
A validator.
  • Enum Constant Details

    • ITEM_ID

      public static final CAUVItemID ITEM_ID
      A validator.
  • Method Details

    • values

      public static CAUVItemID[] 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 CAUVItemID 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
    • convertToWire

      public com.io7m.cedarbridge.runtime.api.CBUUID convertToWire(CAItemID message) throws CAProtocolException
      Description copied from interface: CAProtocolMessageValidatorType
      Convert a core message to a wire message.
      Specified by:
      convertToWire in interface CAProtocolMessageValidatorType<CAItemID,com.io7m.cedarbridge.runtime.api.CBUUID>
      Parameters:
      message - The core message
      Returns:
      The wire message
      Throws:
      CAProtocolException - On errors
    • convertFromWire

      public CAItemID convertFromWire(com.io7m.cedarbridge.runtime.api.CBUUID message) throws CAProtocolException
      Description copied from interface: CAProtocolMessageValidatorType
      Convert a wire message to a core message.
      Specified by:
      convertFromWire in interface CAProtocolMessageValidatorType<CAItemID,com.io7m.cedarbridge.runtime.api.CBUUID>
      Parameters:
      message - The wire message
      Returns:
      The core message
      Throws:
      CAProtocolException - On errors