|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.ors.OptionRootUnderlyingMap
public class OptionRootUnderlyingMap
A class that provides a mapping between option roots and underlying symbols based on the mapping provided by the Options Clearing Corporation.
This class can be safely used concurrently from multiple threads.
| Constructor Summary | |
|---|---|
OptionRootUnderlyingMap()
Creates an instance. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
static OptionRootUnderlyingMap |
getInstance()
Returns the singleton instance if initialized, null otherwise. |
Collection<String> |
getOptionRoots(String inUnderlying)
Returns the collection of option roots for the underlying symbol. |
String |
getUnderlying(String inOptionRoot)
Gets the underlying symbol, given the option root symbol. |
void |
setFilename(String inFilename)
The name of the file from which the mappings should be read. |
void |
setIncludeTypes(String[] inIncludeTypes)
Sets the type of records to include. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptionRootUnderlyingMap()
| Method Detail |
|---|
public String getUnderlying(String inOptionRoot)
inOptionRoot - the option root symbol.
public Collection<String> getOptionRoots(String inUnderlying)
inUnderlying - the underlying symbol.
public void setFilename(String inFilename)
inFilename - the file name.public void setIncludeTypes(String[] inIncludeTypes)
inIncludeTypes - the type of records to include. Should not be null.public static OptionRootUnderlyingMap getInstance()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||