@classmethod<EOL><INDENT>def typeOf(cls, what):<DEDENT>
result = observerTypeEnum.unknown<EOL>if isinstance(what, str):<EOL><INDENT>result = (observerTypeEnum.state<EOL>if (what == "<STR_LIT:*>")<EOL>else observerTypeEnum.element)<EOL><DEDENT>elif hasattr(what, "<STR_LIT>"):<EOL><INDENT>result = observerTypeEnum.listOfElements<EOL><DEDENT>return result<EOL>
Return the type of the observer

:param str|Array what: a string to evaluate
:return: the type of the string
:rtype: observerTypeEnum