public abstract class InstrumentFromRow extends DynamicInstrumentHandler<Row>
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_SECURITY_TYPE
The Security Type field header name.
|
static String |
FIELD_SYMBOL
The Symbol field header name.
|
| Constructor and Description |
|---|
InstrumentFromRow() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
canProcess(String inHeader,
int inIndex)
Returns true if this handler can handle the field corresponding
to the supplied header.
|
protected abstract Instrument |
extract(Row inRow)
Extracts the instrument value from the supplied row.
|
protected SecurityType |
getSecurityType(String[] inRow)
Returns the security type value from the supplied row, if available.
|
protected String |
getSymbol(String[] inRow)
Returns the symbol value for the supplied row.
|
isHandledpublic static final String FIELD_SYMBOL
public static final String FIELD_SECURITY_TYPE
protected abstract boolean canProcess(String inHeader, int inIndex)
Subclasses override this method to setup any state needed to handle the headers that they care about.
inHeader - the header value.inIndex - the header index.protected final String getSymbol(String[] inRow)
inRow - the rowprotected final SecurityType getSecurityType(String[] inRow) throws OrderParsingException
inRow - the rowOrderParsingException - if there were errors parsing the
security type value.protected abstract Instrument extract(Row inRow) throws OrderParsingException
inRow - the rowOrderParsingException - if there were errors extracting
the instrument value.Copyright © 2014. All Rights Reserved.