org.marketcetera.ors.history
Class OptionSummaryFields

java.lang.Object
  extended by org.marketcetera.core.instruments.InstrumentFunctionHandler<I>
      extended by org.marketcetera.ors.history.InstrumentSummaryFields<Option>
          extended by org.marketcetera.ors.history.OptionSummaryFields

public class OptionSummaryFields
extends InstrumentSummaryFields<Option>

Extracts report summary fields for an option instrument.

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

Field Summary
 
Fields inherited from class org.marketcetera.ors.history.InstrumentSummaryFields
SELECTOR
 
Constructor Summary
OptionSummaryFields()
          Creates an instance that handles the specified instrument subclass.
 
Method Summary
 String getExpiry(Instrument inInstrument)
          Returns the expiry value of the instrument.
 OptionType getOptionType(Instrument inInstrument)
          Returns the option type of the instrument.
 BigDecimal getStrikePrice(Instrument inInstrument)
          Returns the strike price of the instrument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionSummaryFields

public OptionSummaryFields()
Creates an instance that handles the specified instrument subclass.

Method Detail

getExpiry

public String getExpiry(Instrument inInstrument)
Description copied from class: InstrumentSummaryFields
Returns the expiry value of the instrument.

Specified by:
getExpiry in class InstrumentSummaryFields<Option>
Parameters:
inInstrument - the instrument.
Returns:
the expiry or null if no expiry is available for the instrument.

getStrikePrice

public BigDecimal getStrikePrice(Instrument inInstrument)
Description copied from class: InstrumentSummaryFields
Returns the strike price of the instrument.

Specified by:
getStrikePrice in class InstrumentSummaryFields<Option>
Parameters:
inInstrument - the instrument.
Returns:
the strike price or null if no strike price is available for the instrument.

getOptionType

public OptionType getOptionType(Instrument inInstrument)
Description copied from class: InstrumentSummaryFields
Returns the option type of the instrument.

Specified by:
getOptionType in class InstrumentSummaryFields<Option>
Parameters:
inInstrument - the instrument.
Returns:
the option type or null if no option type is available for the instrument.


Copyright © 2012. All Rights Reserved.