51Degrees Pipeline for Python

fiftyone_pipeline_engines.aspectdata.AspectData Class Reference

Detailed Description

AspectData extends elementData by adding the option of a missing property service It also allows properties to be explicitly excluded by a flowElement / engine.

Inheritance diagram for fiftyone_pipeline_engines.aspectdata.AspectData:

[legend]

Collaboration diagram for fiftyone_pipeline_engines.aspectdata.AspectData:

[legend]

Public Member Functions

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

Public Attributes

 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.AspectData.__init__ ( self,
flow_element )

Constructor for element data Adds default missing property service if not available.

@type FlowElement:

Parameters
FlowElement

Member Function Documentation

◆ get()

fiftyone_pipeline_engines.aspectdata.AspectData.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

Parameters
keythe key to get @rtype mixed
Returns
The value stored under the chosen key

Reimplemented from fiftyone_pipeline_core.elementdata.ElementData.

Member Data Documentation

◆ missing_property_service

fiftyone_pipeline_engines.aspectdata.AspectData.missing_property_service = MissingPropertyService()