blpapi.ConstantList
- class blpapi.ConstantList(handle, sessions)
Represents a list of schema enumeration constants.
As well as the list of
Constantobjects, this class also provides access to the symbolic name, description and status of the list as a whole. AllConstantobjects in aConstantListare of the sameDataType.ConstantListobjects are read-only.Application clients never create
ConstantListobject directly; applications will typically work withConstantListobjects returned by otherblpapicomponents.- __iter__()
- Return type
- Returns
Iterator over constants contained in this
ConstantList
- datatype()
- Returns
Data type used to represent the value of this constant
- Return type
The possible return values are enumerated in
DataType.
- description()
- Returns
Human readable description of this
ConstantList- Return type
- getConstant(name)
- Parameters
name (
Name) – Name of the constant- Return type
- Returns
Constant with the specified
name- Raises
NotFoundException – If this
ConstantListdoes not contain aConstantwith the specifiedname
- getConstantAt(position)
- Parameters
position (
int) – Position of the requested constant in the list- Return type
- Returns
Constant at the specified
position.- Raises
IndexOutOfRangeException – If
positionis not in the range from0tonumConstants() - 1.
- hasConstant(name)
- Parameters
name (
Name) – Name of the constant- Return type
- Returns
Trueif thisConstantListcontains an item with thisname.- Raises
- name()
- Returns
Symbolic name of this
ConstantList- Return type
- status()
- Returns
Status of this
ConstantList- Return type
The possible return values are enumerated in
SchemaStatus