Package mobi :: Package mtld :: Package da :: Module property_name :: Class PropertyName
[frames] | no frames]

Class PropertyName

object --+
         |
        PropertyName

Contains a property name and the expected data type of values associated with the property.

This is returned in a list when the method get_property_names() is called.


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

Author: Afilias Technologies Limited

Instance Methods
 
__init__(self, name, data_type_id)
Create a new PropertyName with a string name and expected data type of values.
 
data_type(self)
Get the data type name for values associated with this Property name.
 
str(self)
Returns the property data type id wrapped by breaks.
 
__eq__(self, o)
 
__ne__(self, o)

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

Properties
  name
Get the name of this PropertyName.
  data_type_id
Get the data type ID for values associated with this Property name.

Inherited from object: __class__

Method Details

__init__(self, name, data_type_id)
(Constructor)

 

Create a new PropertyName with a string name and expected data type of values.

Parameters:
  • name - The name for the property.
  • data_type_id - The ID of the data type for this property name.
Overrides: object.__init__

data_type(self)

 

Get the data type name for values associated with this Property name.

Returns:
The name of the data type.

Property Details

name

Get the name of this PropertyName.

Get Method:
unreachable.name(self) - Get the name of this PropertyName.

data_type_id

Get the data type ID for values associated with this Property name.

Get Method:
unreachable.data_type_id(self) - Get the data type ID for values associated with this Property name.