\r\n

51Degrees Pipeline Python  4.4

51Degrees Pipeline for Python

fiftyone_pipeline_core.elementdata.ElementData Class Reference

Detailed Description

Core ElementData class Stores information created by a FlowElement based on FlowData.

Stored in FlowData

Inheritance diagram for fiftyone_pipeline_core.elementdata.ElementData:

[legend]

Collaboration diagram for fiftyone_pipeline_core.elementdata.ElementData:

[legend]

Public Member Functions

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_internal (self, key)
Returns the requested property from the data Overridden by specific ElementData instances. More...
def  get_properties (self)
Proxy to the data's flowElement properties. More...

Public Attributes

Constructor & Destructor Documentation

Member Function Documentation

◆ __getattr__()

def fiftyone_pipeline_core.elementdata.ElementData.__getattr__ (   self,
  key  
)

Magic getter for a property from the data Allowing user to write for example Data.IsMobile rather than Data.get("IsMobile)

@type key: str

Parameters
key - property

@rtype: mixed

Returns
: Returns specified property from the data

◆ __getitem__()

def fiftyone_pipeline_core.elementdata.ElementData.__getitem__ (   self,
  flow_element_key  
)

Magic method in Python, which when used in a class, allows its instances to use the [] (indexer) operators.

For example, instead of flowdata.get("device") you can use flowdata["device"]

@type flow_element_key: string

Parameters
flow_element_key - datakey of the FlowElement that created the data of interest

@rtype: ElementData

◆ get()

def fiftyone_pipeline_core.elementdata.ElementData.get (   self,
  key  
)

Get a value from the elementData contents Proxy for the ElementData.getInternal method.

@type key: str

Parameters
- key

@rtype: mixed

Returns
: Returns specified property from the data

Reimplemented in fiftyone_pipeline_engines.aspectdata.AspectData.

◆ get_properties()

def fiftyone_pipeline_core.elementdata.ElementData.get_properties (   self )

Proxy to the data's flowElement properties.

Gets the FlowElement.properties of the parent FlowElement.

@rtype: DataPropertyDictionary

Returns
: Returns dictionary of the parent FlowElement's properties

Member Data Documentation

◆ flow_element

fiftyone_pipeline_core.elementdata.ElementData.flow_element