blpapi.SchemaElementDefinition¶
- class blpapi.SchemaElementDefinition¶
The definition of an individual field within a schema type.
This class implements the definition of an individual field within a schema type. An element is defined by an identifer/name, a type, and the number of values of that type that may be associated with the identifier/name. In addition, this class offers access to metadata providing a description and deprecation status for the field.
SchemaElementDefinitionobjects are returned byServiceandOperationobjects to define the content of requests, replies and events. TheSchemaTypeDefinitionreturned bytypeDefinition()may itself provide access toSchemaElementDefinitionobjects when the schema contains nested elements. (See theSchemaTypeDefinitiondocumentation for more information on complex types.)An optional element has
minValues() == 0.A mandatory element has
minValues() >= 1.An element that must constain a single value has
minValues() == maxValues() == 1.An element containing an array has
maxValues() > 1.An element with no upper limit on the number of values has
maxValues() == UNBOUNDED.SchemaElementDefinitionobjects are read-only.Application clients need never create
SchemaElementDefinitionobjects directly; applications will typically work with objects returned by other blpapi components.- UNBOUNDED = 4294967295¶
Indicates an array has an unbounded number of values.
- maxValues()¶
- Returns
The maximum number of occurences of this element.
- Return type
This value is always greater than or equal to one.
Return value is equal to
UNBOUNDEDif this item is an unbounded array.
- minValues()¶
- Returns
The minimum number of occurences of this element.
- Return type
This value is always greater than or equal to zero.
- name()¶
- Returns
The name identifying this element within its containing structure/type.
- Return type
- status()¶
- Returns
The deprecation status of this element.
- Return type
The possible return values are enumerated in
SchemaStatus.
- toString(level=0, spacesPerLevel=4)¶
- Parameters
- Returns
This object formatted as a string
- Return type
If
levelis negative, suppress indentation of the first line. IfspacesPerLevelis negative, format the entire output on one line, suppressing all but the initial indentation (as governed bylevel).
- typeDefinition()¶
- Returns
The type of values contained in this element.
- Return type