Package mobi :: Package mtld :: Package da :: Module data_type :: Class DataType
[frames] | no frames]

Class DataType

object --+
         |
        DataType
Known Subclasses:

This class represents the data types for various properties. Each Property object returned has a data_type() method.


Copyright: Copyright (c) Afilias Technologies Limited 2021. All Rights Reserved.

Author: Afilias Technologies Limited

Instance Methods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
name(data_type_id)
Get the name of a given data type.
Class Variables
  BOOLEAN = 0
  BYTE = 1
  DOUBLE = 6
  FLOAT = 5
  INTEGER = 3
  LONG = 4
  SHORT = 2
  STRING = 7
  UNKNOWN = 8
Properties

Inherited from object: __class__

Method Details

name(data_type_id)
Static Method

 

Get the name of a given data type.

Parameters:
  • data_type_id - The identifier to lookup the name for.
Returns:
The name of the data type.