51Degrees Pipeline for Python

fiftyone_pipeline_engines.aspectdata_dictionary.AspectDataDictionary Class Reference

Detailed Description

AspectDataDictionary class extension that stores content as dictionary.

Inheritance diagram for fiftyone_pipeline_engines.aspectdata_dictionary.AspectDataDictionary:

[legend]

Collaboration diagram for fiftyone_pipeline_engines.aspectdata_dictionary.AspectDataDictionary:

[legend]

Public Member Functions

 __init__ (self, flow_element, contents)
 Constructor for element data dictionary.
 as_dictionary (self)
 Get the values contained in the aspectData instance as a dictionary of keys and values.
 get_internal (self, key)
 getInternal = Internal getter for contents

Public Member Functions inherited from fiftyone_pipeline_engines.aspectdata.AspectData

 __init__ (self, flow_element)
 Constructor for element data Adds default missing property service if not available.
 get (self, key)
 get - Get a value (unless in a flowElement's restrictedProperties list) If property not found, call the attached missing property service @type key: string

Public Member Functions inherited from fiftyone_pipeline_core.elementdata.ElementData

 __init__ (self, flow_element)
 Constructor for 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).
 __getitem__ (self, flow_element_key)
 Magic method in Python, which when used in a class, allows its instances to use the [] (indexer) operators.
 get_properties (self)
 Proxy to the data's flowElement properties.

Public Attributes

dict contents = {}

Public Attributes inherited from fiftyone_pipeline_engines.aspectdata.AspectData

 missing_property_service = MissingPropertyService()

Public Attributes inherited from fiftyone_pipeline_core.elementdata.ElementData

 flow_element = flow_element

Constructor & Destructor Documentation

◆ __init__()

fiftyone_pipeline_engines.aspectdata_dictionary.AspectDataDictionary.__init__ ( self,
flow_element,
contents )

Constructor for element data dictionary.

@type flow_element: FlowElement

Parameters
flow_element

@type contents: dict

Parameters
contents

Member Function Documentation

◆ as_dictionary()

fiftyone_pipeline_engines.aspectdata_dictionary.AspectDataDictionary.as_dictionary ( self)

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

@rtype: dict

Returns
: Returns the values contained in the aspectData instance as a dictionary of keys and values.

◆ get_internal()

fiftyone_pipeline_engines.aspectdata_dictionary.AspectDataDictionary.get_internal ( self,
key )

getInternal = Internal getter for contents

@type key: string

Parameters
keythe key to get

@rtype: dict

Returns
: Internal getter for contents

Reimplemented from fiftyone_pipeline_core.elementdata.ElementData.

Member Data Documentation

◆ contents

dict fiftyone_pipeline_engines.aspectdata_dictionary.AspectDataDictionary.contents = {}