Class RequiredTradeFieldsValidator
java.lang.Object
com.caplin.motif.fx.trading.validator.RequiredTradeFieldsValidator
- All Implemented Interfaces:
TradeValidator
-
Constructor Summary
ConstructorDescriptionRequiredTradeFieldsValidator
(String... fieldNames) RequiredTradeFieldsValidator
(Set<String> fieldNames) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExpectedFieldValues
(String fieldName, List<String> expectedFieldValues) void
validate
(com.caplin.trading.Trade trade) Checks the validity of a Trade .
-
Constructor Details
-
RequiredTradeFieldsValidator
-
RequiredTradeFieldsValidator
-
-
Method Details
-
addExpectedFieldValues
-
validate
Description copied from interface:TradeValidator
Checks the validity of a Trade . This method should throw anValidationException
if the trade is not valid.- Specified by:
validate
in interfaceTradeValidator
- Parameters:
trade
- The trade to be validated- Throws:
ValidationException
- If there was a problem validating the trade.
-