|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<InstrumentProfileField>
com.dxfeed.ipf.InstrumentProfileField
public enum InstrumentProfileField
Defines standard fields of InstrumentProfile
and provides data access methods.
Please see Instrument Profile Format documentation for complete description.
Method Summary | |
---|---|
static InstrumentProfileField |
find(java.lang.String name)
Returns field for specified name or null if field is not found. |
java.lang.String |
getField(InstrumentProfile ip)
Returns value of this field for specified profile in textual representation. |
double |
getNumericField(InstrumentProfile ip)
Returns value of this field for specified profile in numeric representation. |
boolean |
isNumericField()
Returns "true" if this field supports numeric representation of a value. |
void |
setField(InstrumentProfile ip,
java.lang.String value)
Sets value of this field (in textual representation) to specified profile. |
void |
setNumericField(InstrumentProfile ip,
double value)
Sets value of this field (in numeric representation) to specified profile. |
static InstrumentProfileField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static InstrumentProfileField[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final InstrumentProfileField TYPE
public static final InstrumentProfileField SYMBOL
public static final InstrumentProfileField DESCRIPTION
public static final InstrumentProfileField LOCAL_SYMBOL
public static final InstrumentProfileField LOCAL_DESCRIPTION
public static final InstrumentProfileField COUNTRY
public static final InstrumentProfileField OPOL
public static final InstrumentProfileField EXCHANGE_DATA
public static final InstrumentProfileField EXCHANGES
public static final InstrumentProfileField CURRENCY
public static final InstrumentProfileField BASE_CURRENCY
public static final InstrumentProfileField CFI
public static final InstrumentProfileField ISIN
public static final InstrumentProfileField SEDOL
public static final InstrumentProfileField CUSIP
public static final InstrumentProfileField ICB
public static final InstrumentProfileField SIC
public static final InstrumentProfileField MULTIPLIER
public static final InstrumentProfileField PRODUCT
public static final InstrumentProfileField UNDERLYING
public static final InstrumentProfileField SPC
public static final InstrumentProfileField ADDITIONAL_UNDERLYINGS
public static final InstrumentProfileField MMY
public static final InstrumentProfileField EXPIRATION
public static final InstrumentProfileField LAST_TRADE
public static final InstrumentProfileField STRIKE
public static final InstrumentProfileField OPTION_TYPE
public static final InstrumentProfileField EXPIRATION_STYLE
public static final InstrumentProfileField SETTLEMENT_STYLE
public static final InstrumentProfileField PRICE_INCREMENTS
public static final InstrumentProfileField TRADING_HOURS
Method Detail |
---|
public static InstrumentProfileField[] values()
for (InstrumentProfileField c : InstrumentProfileField.values()) System.out.println(c);
public static InstrumentProfileField valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static InstrumentProfileField find(java.lang.String name)
valueOf(java.lang.String)
method is that later method throws exception for unknown fields.
public java.lang.String getField(InstrumentProfile ip)
public void setField(InstrumentProfile ip, java.lang.String value)
java.lang.IllegalArgumentException
- if text uses wrong format or contains invalid valuespublic boolean isNumericField()
public double getNumericField(InstrumentProfile ip)
java.lang.IllegalArgumentException
- if this field has no numeric representationpublic void setNumericField(InstrumentProfile ip, double value)
java.lang.IllegalArgumentException
- if this field has no numeric representation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |