def getName(self, innerFlag=False):
if self._currentIdx is None:<EOL><INDENT>raise error.PyAsn1Error('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>if innerFlag:<EOL><INDENT>c = self._componentValues[self._currentIdx]<EOL>if isinstance(c, Choice):<EOL><INDENT>return c.getName(innerFlag)<EOL><DEDENT><DEDENT>return self.componentType.getNameByPosition(self._currentIdx)<EOL><DEDENT>
Return the name of currently assigned component of the |ASN.1| object.

        Returns
        -------
        : :py:class:`str`
            |ASN.1| component name