Package src :: Package com :: Package deviceatlas :: Module property_name :: Class PropertyName
[frames] | no frames]

Class 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) DeviceAtlas Limited 2023. All Rights Reserved.

Author: DeviceAtlas Limited

Instance Methods
 
__init__(self, name, data_type_id)
Create a new PropertyName with a string name and expected data type of values.
 
name(self)
Get the name of this PropertyName.
 
data_type_id(self)
Get the data type ID for values associated with this Property name.
 
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)
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.

name(self)

 

Get the name of this PropertyName.

Decorators:
  • @property

data_type_id(self)

 

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

Decorators:
  • @property

data_type(self)

 

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

Returns:
The name of the data type.