Interface TradeValidator
- All Known Implementing Classes:
BlockTradeValidator,RequiredTradeFieldsValidator
public interface TradeValidator
An interface for validating a trade submission
A class that is interested in validating the submission of an FX trade should implement this interface. It can be registered by calling:
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(com.caplin.trading.Trade trade) Checks the validity of a Trade .
-
Method Details
-
validate
Checks the validity of a Trade . This method should throw anValidationExceptionif the trade is not valid.- Parameters:
trade- The trade to be validated- Throws:
ValidationException- If there was a problem validating the trade.
-