![]() |
IOLink Python 1.11.0
|
Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| uid (self) | |
| parent_count (self) | |
| parent (self, idx) | |
| data_origin (self) | |
| display_name (self) | |
| to_string (self) | |
| __repr__ (self) | |
Static Public Member Functions | |
| cast (extension) | |
Static Public Attributes | |
| EXTENSION_ID = _iolink.ViewOriginExtension_EXTENSION_ID | |
Properties | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
Properties inherited from iolink.iolink.Extension | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
Extension used to access view's origins if it exists. Views can be created from scratch, but also from one or many other views. This extension provides methods which allow to build the dependency tree of current view. It also helps to retrieve information to know data origin and to identify a view between others.
| iolink.iolink.ViewOriginExtension.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Reimplemented from iolink.iolink.Extension.
| iolink.iolink.ViewOriginExtension.__repr__ | ( | self | ) |
Reimplemented from iolink.iolink.Extension.
|
static |
Upcast a generic extension to this specific type.
:type extension: :py:class:`Extension`
:param extension: The extension to cast.
:rtype: :py:class:`ViewOriginExtension`
:return: The upcasted extension. This will be null if no upcasting is possible.
| iolink.iolink.ViewOriginExtension.data_origin | ( | self | ) |
Returns the data origin of current view
:raises: Error if data origin is not available
| iolink.iolink.ViewOriginExtension.display_name | ( | self | ) |
Returns the name of the current view to display
:raises: Error if display name is not available
| iolink.iolink.ViewOriginExtension.parent | ( | self, | |
| idx | |||
| ) |
Returns, for the given index, the viewOrigin extension of the parent used
to create the current view.
:type idx: int
:param idx: index of parent to retrieve
:raises: Error if the index is out of range
:rtype: :py:class:`ViewOriginExtension`
:return: a ViewOrigin extension which cannot be null
| iolink.iolink.ViewOriginExtension.parent_count | ( | self | ) |
Returns the count of parents used to create
the current view.
:rtype: int
:return: count of view's parents
| iolink.iolink.ViewOriginExtension.to_string | ( | self | ) |
String representation of the extension.
| iolink.iolink.ViewOriginExtension.uid | ( | self | ) |
Returns an unique identifier for current view
:rtype: int
:return: view identifier