|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.glossary.CFI
public class CFI
A wrapper class for Classification of Financial Instruments code as defined in ISO 10962 standard. Main purpose is to provide code validity checks and to construct textual explanation of CFI code as defined in the standard via Java API. This class does not provide API-accessible constants for specific instrument attributes and values.
Nested Class Summary | |
---|---|
static class |
CFI.Attribute
Describes single attribute with all values as defined in the ISO 10962 standard. |
static class |
CFI.Value
Describes single value of single character of CFI code as defined in the ISO 10962 standard. |
Field Summary | |
---|---|
static CFI |
EMPTY
Empty CFI - it has code "XXXXXX". |
Method Summary | |
---|---|
CFI.Value[] |
decipher()
Returns array of values that explain meaning of each character in the CFI code. |
String |
describe()
Returns short textual description of this CFI code by listing names of all values for the characters in this CFI code. |
boolean |
equals(Object obj)
|
char |
getCategory()
Returns single character for instrument category - the first character of the CFI code. |
String |
getCode()
Returns CFI code. |
char |
getGroup()
Returns single character for instrument group - the second character of the CFI code. |
int |
getIntCode()
Returns integer representation of CFI code. |
int |
hashCode()
|
boolean |
isDebtInstrument()
Returns true if corresponding instrument is a debt instrument. |
boolean |
isEntitlement()
Returns true if corresponding instrument is an entitlement (right). |
boolean |
isEquity()
Returns true if corresponding instrument is an equity. |
boolean |
isFuture()
Returns true if corresponding instrument is a future. |
boolean |
isOption()
Returns true if corresponding instrument is an option. |
boolean |
isOther()
Returns true if corresponding instrument is an other (miscellaneous) instrument. |
String |
toString()
|
static CFI |
valueOf(int intCode)
Returns an instance of CFI for specified integer representation of CFI code. |
static CFI |
valueOf(String code)
Returns an instance of CFI for specified CFI code. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CFI EMPTY
Method Detail |
---|
public static CFI valueOf(String code)
IllegalArgumentException
- if code is invalidpublic static CFI valueOf(int intCode)
IllegalArgumentException
- if code is invalidpublic String getCode()
public int getIntCode()
public char getCategory()
public char getGroup()
public boolean isEquity()
public boolean isDebtInstrument()
public boolean isEntitlement()
public boolean isOption()
public boolean isFuture()
public boolean isOther()
public CFI.Value[] decipher()
public String describe()
decipher()
method.
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |