blpapi.ConstantList¶
-
class
blpapi.
ConstantList
¶ Represents a list of schema enumeration constants.
As well as the list of
Constant
objects, this class also provides access to the symbolic name, description and status of the list as a whole. AllConstant
objects in aConstantList
are of the sameDataType
.ConstantList
objects are read-only.Application clients never create
ConstantList
object directly; applications will typically work withConstantList
objects returned by otherblpapi
components.-
__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
ConstantList
does not contain aConstant
with 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
position
is not in the range from0
tonumConstants() - 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
-