public enum InstrumentProfileField extends Enum<InstrumentProfileField>
InstrumentProfile
and provides data access methods.
Please see Instrument Profile Format documentation for complete description.Enum Constant and Description |
---|
ADDITIONAL_UNDERLYINGS |
BASE_CURRENCY |
CFI |
COUNTRY |
CURRENCY |
CUSIP |
DESCRIPTION |
EXCHANGE_DATA |
EXCHANGES |
EXPIRATION |
EXPIRATION_STYLE |
ICB |
ISIN |
LAST_TRADE |
LOCAL_DESCRIPTION |
LOCAL_SYMBOL |
MMY |
MULTIPLIER |
OPOL |
OPTION_TYPE |
PRICE_INCREMENTS |
PRODUCT |
SEDOL |
SETTLEMENT_STYLE |
SIC |
SPC |
STRIKE |
SYMBOL |
TRADING_HOURS |
TYPE |
UNDERLYING |
Modifier and Type | Method and Description |
---|---|
static InstrumentProfileField |
find(String name)
Returns field for specified name or null if field is not found.
|
static String |
formatDate(int d) |
static String |
formatNumber(double d) |
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.
|
Class<?> |
getType()
Returns type of this field.
|
boolean |
isNumericField()
Returns "true" if this field supports numeric representation of a value.
|
static int |
parseDate(String s) |
static double |
parseNumber(String s) |
void |
setField(InstrumentProfile ip,
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(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.
|
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
public static InstrumentProfileField[] values()
for (InstrumentProfileField c : InstrumentProfileField.values()) System.out.println(c);
public static InstrumentProfileField valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static InstrumentProfileField find(String name)
valueOf(java.lang.String)
method is that later method throws exception for unknown fields.public String getField(InstrumentProfile ip)
public void setField(InstrumentProfile ip, String value)
IllegalArgumentException
- if text uses wrong format or contains invalid valuespublic Class<?> getType()
public boolean isNumericField()
public double getNumericField(InstrumentProfile ip)
IllegalArgumentException
- if this field has no numeric representationpublic void setNumericField(InstrumentProfile ip, double value)
IllegalArgumentException
- if this field has no numeric representationpublic static String formatNumber(double d)
public static double parseNumber(String s)
public static String formatDate(int d)
public static int parseDate(String s)
Copyright © 2002–2023 Devexperts LLC. All rights reserved.