\r\n

51Degrees Pipeline Python  4.4

51Degrees Pipeline for Python

fiftyone_pipeline_core.elementdata_dictionary.ElementDataDictionary Class Reference

Detailed Description

An extension of ElementData with dictionary object storage / lookup.

Inheritance diagram for fiftyone_pipeline_core.elementdata_dictionary.ElementDataDictionary:

[legend]

Collaboration diagram for fiftyone_pipeline_core.elementdata_dictionary.ElementDataDictionary:

[legend]

Public Member Functions

def  __init__ (self, flow_element, contents)
Constructor for Element Data Dictionary. More...
def  as_dictionary (self)
Get the values contained in the ElementData instance as a dictionary of keys and values. More...
def  get_internal (self, key)

Public Member Functions inherited from fiftyone_pipeline_core.elementdata.ElementData

def  __init__ (self, flow_element)
Constructor for ElementData. More...
def  get (self, key)
Get a value from the elementData contents Proxy for the ElementData.getInternal method. More...
def  __getattr__ (self, key)
Magic getter for a property from the data Allowing user to write for example Data.IsMobile rather than Data.get("IsMobile) More...
def  __getitem__ (self, flow_element_key)
Magic method in Python, which when used in a class, allows its instances to use the [] (indexer) operators. More...
def  get_properties (self)
Proxy to the data's flowElement properties. More...

Public Attributes

 flow_element

Public Attributes inherited from fiftyone_pipeline_core.elementdata.ElementData

 flow_element

Constructor & Destructor Documentation

◆ __init__()

def fiftyone_pipeline_core.elementdata_dictionary.ElementDataDictionary.__init__ (   self,
  flow_element,
  contents  
)

Constructor for Element Data Dictionary.

@type flowElement: FlowElement

Parameters
flowElement - FlowElement that creates the data to be stored

@type contents: dict

Parameters
contents - Dictionary contents

Member Function Documentation

◆ as_dictionary()

def fiftyone_pipeline_core.elementdata_dictionary.ElementDataDictionary.as_dictionary (   self )

Get the values contained in the ElementData instance as a dictionary of keys and values.

@rtype: dict

Returns
: Returns a dictionary of items in an ElementData

Member Data Documentation

◆ contents

fiftyone_pipeline_core.elementdata_dictionary.ElementDataDictionary.contents

◆ flow_element

fiftyone_pipeline_core.elementdata_dictionary.ElementDataDictionary.flow_element
On This Page