Package com.opengamma.strata.data
Class ObservableSource
- java.lang.Object
-
- com.opengamma.strata.collect.TypedString<ObservableSource>
-
- com.opengamma.strata.data.ObservableSource
-
- All Implemented Interfaces:
Named
,Serializable
,Comparable<ObservableSource>
public final class ObservableSource extends TypedString<ObservableSource>
Identifies the source of observable market data, for example Bloomberg or Reuters.The meaning of a source is deliberately abstract, identified only by name. While it may refer to a major system, such as Bloomberg, it might refer to any other system or sub-system, such as data from a specific broker.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ObservableSource
NONE
A market data source used when the application does not care about the source.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObservableSource
of(String name)
Obtains an instance from the specified name.
-
-
-
Field Detail
-
NONE
public static final ObservableSource NONE
A market data source used when the application does not care about the source.
-
-
Method Detail
-
of
public static ObservableSource of(String name)
Obtains an instance from the specified name.Source names must only contains the characters A-Z, a-z, 0-9 and -.
- Parameters:
name
- the name of the source- Returns:
- a source with the specified name
-
-