def getComponent(self, innerFlag=False):
        """Return currently assigned component of the |ASN.1| object.

        Returns
        -------
        : :py:class:`~pyasn1.type.base.PyAsn1Item`
            a PyASN1 object
        """
        if self._currentIdx is None:
            raise error.PyAsn1Error('Component not chosen')
        else:
            c = self._componentValues[self._currentIdx]
            if innerFlag and isinstance(c, Choice):
                return c.getComponent(innerFlag)
            else:
                return c
def getComponent ( self , innerFlag = False ) : if self . _currentIdx is None : raise error . PyAsn1Error ( 'Component not chosen' ) else : c = self . _componentValues [ self . _currentIdx ] if innerFlag and isinstance ( c , Choice ) : return c . getComponent ( innerFlag ) else : return c
Return currently assigned component of the |ASN.1| object.

        Returns
        -------
        : :py:class:`~pyasn1.type.base.PyAsn1Item`
            a PyASN1 object