org.marketcetera.client
Class Validations

java.lang.Object
  extended by org.marketcetera.client.Validations

public final class Validations
extends Object

Carries out validations for various order types.

Since:
1.0.0
Version:
$Id: Validations.java 16154 2012-07-14 16:34:05Z colin $
Author:
anshul@marketcetera.com

Method Summary
static void validate(FIXOrder inFIXOrder)
          Validates a new order.
static void validate(OrderCancel inOrderCancel)
          Validates a new order.
static void validate(OrderReplace inOrderReplace)
          Validates a new order.
static void validate(OrderSingle inOrderSingle)
          Validates a new order.
static void validate(OrderSingleSuggestion inSuggestion)
          Validates a suggestion.
static void validateInstrument(Instrument inInstrument)
          Validates an instrument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validate

public static void validate(OrderSingle inOrderSingle)
                     throws OrderValidationException
Validates a new order. Following validations are performed.

Parameters:
inOrderSingle - The order that needs to be validated.
Throws:
OrderValidationException - if any of the validations fail.

validate

public static void validate(FIXOrder inFIXOrder)
                     throws OrderValidationException
Validates a new order. Following validations are performed.

Parameters:
inFIXOrder - The order that needs to be validated.
Throws:
OrderValidationException - if any of the validations fail.

validate

public static void validate(OrderReplace inOrderReplace)
                     throws OrderValidationException
Validates a new order. Following validations are performed.

Parameters:
inOrderReplace - The order that needs to be validated.
Throws:
OrderValidationException - if any of the validations fail.

validate

public static void validate(OrderCancel inOrderCancel)
                     throws OrderValidationException
Validates a new order. Following validations are performed.

Parameters:
inOrderCancel - The order that needs to be validated.
Throws:
OrderValidationException - if any of the validations fail.

validate

public static void validate(OrderSingleSuggestion inSuggestion)
                     throws OrderValidationException
Validates a suggestion. Following validations are performed.

Parameters:
inSuggestion - The suggestion that needs to be validated.
Throws:
OrderValidationException - if any of the validations fail.

validateInstrument

public static void validateInstrument(Instrument inInstrument)
                               throws OrderValidationException
Validates an instrument.

Verifies that the instrument is non-null and performs instrument specific validation using InstrumentValidationHandler.

Parameters:
inInstrument - the instrument
Throws:
OrderValidationException - if the instrument fails validation.


Copyright © 2012. All Rights Reserved.