Class CAI1Validation
java.lang.Object
com.io7m.cardant.protocol.inventory.cb.CAI1Validation
- All Implemented Interfaces:
CAProtocolMessageValidatorType<CAIMessageType,ProtocolCAIv1Type>
public final class CAI1Validation
extends Object
implements CAProtocolMessageValidatorType<CAIMessageType,ProtocolCAIv1Type>
Functions to translate between the core command set and the Inventory v1
Cedarbridge encoding command set.
-
Constructor Summary
ConstructorsConstructorDescriptionFunctions to translate between the core command set and the Inventory v1 Cedarbridge encoding command set. -
Method Summary
Modifier and TypeMethodDescriptionconvertFromWire(ProtocolCAIv1Type message) Convert a wire message to a core message.convertToWire(CAIMessageType message) Convert a core message to a wire message.
-
Constructor Details
-
CAI1Validation
public CAI1Validation()Functions to translate between the core command set and the Inventory v1 Cedarbridge encoding command set.
-
-
Method Details
-
convertToWire
Description copied from interface:CAProtocolMessageValidatorTypeConvert a core message to a wire message.- Specified by:
convertToWirein interfaceCAProtocolMessageValidatorType<CAIMessageType,ProtocolCAIv1Type> - Parameters:
message- The core message- Returns:
- The wire message
- Throws:
CAProtocolException- On errors
-
convertFromWire
Description copied from interface:CAProtocolMessageValidatorTypeConvert a wire message to a core message.- Specified by:
convertFromWirein interfaceCAProtocolMessageValidatorType<CAIMessageType,ProtocolCAIv1Type> - Parameters:
message- The wire message- Returns:
- The core message
- Throws:
CAProtocolException- On errors
-