|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.core.instruments.DynamicInstrumentHandler<Row>
org.marketcetera.orderloader.system.InstrumentFromRow
org.marketcetera.orderloader.system.OptionFromRow
public class OptionFromRow
Implements extraction of an equity instrument from a row.
| Field Summary | |
|---|---|
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 |
| Fields inherited from class org.marketcetera.orderloader.system.InstrumentFromRow |
|---|
FIELD_SECURITY_TYPE, FIELD_SYMBOL |
| Constructor Summary | |
|---|---|
OptionFromRow()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.marketcetera.orderloader.system.InstrumentFromRow |
|---|
getSecurityType, getSymbol |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FIELD_EXPIRY
public static final String FIELD_STRIKE_PRICE
public static final String FIELD_OPTION_TYPE
| Constructor Detail |
|---|
public OptionFromRow()
| Method Detail |
|---|
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
InstrumentFromRow
extract in class InstrumentFromRowinRow - the row
OrderParsingException - if there were errors extracting
the instrument value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||