blpapi.ConstantList¶
-
class
blpapi.ConstantList¶ 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__()¶ - 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
- Returns
Constant with the specified
name- Return type
- Raises
NotFoundException – If this
ConstantListdoes not contain aConstantwith the specifiedname
-
getConstantAt(position)¶ - Parameters
position (int) – Position of the requested constant in the list
- Returns
Constant at the specified
position.- Return type
- Raises
IndexOutOfRangeException – If
positionis not in the range from0tonumConstants() - 1.
-
hasConstant(name)¶
-
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
-