51Degrees Pipeline Python  4.1

51Degrees Pipeline for Python
  • pipeline-python
  • fiftyone_pipeline_core
  • fiftyone_pipeline_core
  • elementdata
  • ElementData

pipeline-python.fiftyone_pipeline_core.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 pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.elementdata.ElementData:

[legend]

Collaboration diagram for pipeline-python.fiftyone_pipeline_core.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  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

 flow_element

Constructor & Destructor Documentation

◆ __init__()

def pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.elementdata.ElementData.__init__ (   self,
  flow_element  
)

Constructor for ElementData.

@type flow_element: FlowElement

Parameters
flow_element - FlowElement that data has been created by

Member Function Documentation

◆ __getattr__()

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

◆ get()

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

◆ get_properties()

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