public class RequiredTradeFieldsValidator extends Object implements TradeValidator
Constructor and Description |
---|
RequiredTradeFieldsValidator(Set<String> fieldNames) |
RequiredTradeFieldsValidator(String... fieldNames) |
Modifier and Type | Method and Description |
---|---|
void |
addExpectedFieldValues(String fieldName,
List<String> expectedFieldValues) |
void |
validate(com.caplin.trading.Trade trade)
Checks the validity of a Trade .
|
public RequiredTradeFieldsValidator(String... fieldNames)
public void addExpectedFieldValues(String fieldName, List<String> expectedFieldValues)
public void validate(com.caplin.trading.Trade trade) throws ValidationException
TradeValidator
ValidationException
if the
trade is not valid.validate
in interface TradeValidator
trade
- The trade to be validatedValidationException
- If there was a problem validating the trade.Copyright © 2015 Caplin Systems.