public class OptionFromRow extends InstrumentFromRow
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_EXPIRY
The option expiry field header name.
|
static String |
FIELD_OPTION_TYPE
The option type field header name
|
static String |
FIELD_STRIKE_PRICE
The option strike price field header name
|
FIELD_SECURITY_TYPE, FIELD_SYMBOL| Constructor and Description |
|---|
OptionFromRow() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canProcess(String inHeader,
int inIndex)
Returns true if this handler can handle the field corresponding
to the supplied header.
|
protected Instrument |
extract(Row inRow)
Extracts the instrument value from the supplied row.
|
protected boolean |
isHandled(Row inValue) |
getSecurityType, getSymbolpublic static final String FIELD_EXPIRY
public static final String FIELD_STRIKE_PRICE
public static final String FIELD_OPTION_TYPE
protected boolean canProcess(String inHeader, int inIndex)
InstrumentFromRowSubclasses override this method to setup any state needed to handle the headers that they care about.
canProcess in class InstrumentFromRowinHeader - the header value.inIndex - the header index.protected boolean isHandled(Row inValue)
isHandled in class DynamicInstrumentHandler<Row>protected Instrument extract(Row inRow) throws OrderParsingException
InstrumentFromRowextract in class InstrumentFromRowinRow - the rowOrderParsingException - if there were errors extracting
the instrument value.Copyright © 2014. All Rights Reserved.