51Degrees Pipeline Python  4.2

51Degrees Pipeline for Python

pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.elementdata_dictionary.ElementDataDictionary Class Reference

Detailed Description

An extension of ElementData with dictionary object storage / lookup.

Inheritance diagram for pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.elementdata_dictionary.ElementDataDictionary:

[legend]

Collaboration diagram for pipeline-python.fiftyone_pipeline_core.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)
Internal getter for ElementDataDictionary.contents. More...

Public Member Functions inherited from pipeline-python.fiftyone_pipeline_core.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  get_properties (self)
Proxy to the data's flowElement properties. More...

Public Attributes

 contents
 flow_element

Public Attributes inherited from pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.elementdata.ElementData

 flow_element

Constructor & Destructor Documentation

◆ __init__()

def pipeline-python.fiftyone_pipeline_core.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 pipeline-python.fiftyone_pipeline_core.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