public final class IndexQuoteId extends Object implements ObservableId, org.joda.beans.ImmutableBean, Serializable
This identifier can also be used to access the historic time-series of values.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
FieldName |
getFieldName()
Gets the field name in the market data record that contains the market data item.
|
Index |
getIndex()
Gets the index.
|
ObservableSource |
getObservableSource()
Gets the source of observable market data.
|
StandardId |
getStandardId()
Gets the identifier of the data.
|
int |
hashCode() |
static org.joda.beans.TypedMetaBean<IndexQuoteId> |
meta()
The meta-bean for
IndexQuoteId. |
org.joda.beans.TypedMetaBean<IndexQuoteId> |
metaBean() |
static IndexQuoteId |
of(Index index)
Obtains an instance used to obtain an observable value of the index.
|
static IndexQuoteId |
of(Index index,
FieldName fieldName)
Obtains an instance used to obtain an observable value of the index.
|
static IndexQuoteId |
of(Index index,
FieldName fieldName,
ObservableSource obsSource)
Obtains an instance used to obtain an observable value of the index,
specifying the source of observable market data.
|
String |
toString() |
IndexQuoteId |
withObservableSource(ObservableSource obsSource) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMarketDataTypepublic static IndexQuoteId of(Index index)
The field name containing the data is FieldName.MARKET_VALUE and the market
data source is ObservableSource.NONE.
index - the indexpublic static IndexQuoteId of(Index index, FieldName fieldName)
The market data source is ObservableSource.NONE.
index - the indexfieldName - the name of the field in the market data record holding the datapublic static IndexQuoteId of(Index index, FieldName fieldName, ObservableSource obsSource)
index - the indexfieldName - the name of the field in the market data record holding the dataobsSource - the source of observable market datapublic StandardId getStandardId()
This returns an artificial identifier with a scheme of 'OG-Index' and a value of the index name.
getStandardId in interface ObservableIdpublic IndexQuoteId withObservableSource(ObservableSource obsSource)
withObservableSource in interface ObservableIdpublic static org.joda.beans.TypedMetaBean<IndexQuoteId> meta()
IndexQuoteId.public org.joda.beans.TypedMetaBean<IndexQuoteId> metaBean()
metaBean in interface org.joda.beans.Beanpublic Index getIndex()
public FieldName getFieldName()
getFieldName in interface ObservableIdpublic ObservableSource getObservableSource()
getObservableSource in interface ObservableIdCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.