Module macrobond_data_api.com.com_types.metadata_information
Classes
class MetadataInformation
-
Interface for a type of metadata in the Macrobond database.
Instance variables
var CanHaveMultipleValues : bool
-
If True then this type of metadata can have multiple values in a metadata collection.
var CanListValues : bool
-
If True then the values of this type of metadata can be listen using the ListAllValues function.
var Comment : str
-
The comment about the metadata.
var Description : str
-
The description of the metadata.
var IsDatabaseEntity : bool
-
If True then this type of metadata is an entity that can be retrieved from the database.
var Name : str
-
The name of the metadata.
var Restriction : Optional[Literal['url', 'email', 'date', 'positive', 'json']]
-
Potential restriction of the data type. Can be 'date', 'json' or 'positive'.
var UsesValueList : bool
-
Returns True if this type of metadata has a list of possible values.
var ValueType : MetadataValueType
-
The datatype that corresponds directly to the COM VT_* values.
Methods
def ArrangeValues(self, values: object) ‑> List[object]
-
Get a list of possible values for this type of metadata if it uses a list of values.
def GetValueInformation(self, value: object) ‑> MetadataValueInformation
-
Get detailed information of a value when this type of metadata uses a list of values.
def GetValuePresentationText(self, value: object) ‑> str
-
Format the value as a text.
def ListAllValues(self) ‑> List[MetadataValueInformation]
-
Get a list of possible values for this type of metadata if it uses a list of values.
class MetadataValueInformation
-
Interface for a metadata value in the Macrobond database.
Instance variables
var Comment : Optional[str]
-
The comment about the metadata value.
var Description : str
-
The description of the metadata value.
var Value : object
-
The value of the metadata.
class MetadataValueType (value, names=None, *, module=None, qualname=None, type=None, start=1)
-
The type of a metadata value. These values corresponds to the COM VARIANT data types.
Ancestors
- enum.IntEnum
- builtins.int
- enum.Enum
Class variables
var BOOL
-
A boolean value where -1 is True and 0 is False. VT_BOOL.
var DATE
-
A date. VT_DATE.
var DOUBLE
-
A 64-bit floating point number. VT_R8.
var INT
-
A 32-bit signed integer. VT_I4.
var STRING
-
A unicode string. VT_BSTR.