'Return the name of currently assigned component of the |ASN.1| object.
Returns
: :py:class:`str`
|ASN.1| component name'

def getName(self, innerFlag=False):

    if (self._currentIdx is None):
        raise error.PyAsn1Error('Component    not    chosen')
    else:
        if innerFlag:
            c = self._componentValues[self._currentIdx]
            if isinstance(c, Choice):
                return c.getName(innerFlag)
        return self._componentType.getNameByPosition(self._currentIdx)
