Adding my response as an answer:
If you have the community commons module downloaded into the project, there is a java action called "getTypeAsString" which will return the module.entity name as a string (for example, "MyFirstModule.Entity"). The action takes one parameter which will be the entity that you would like the type of.
Alternatively, if you're working directly in java, you can use the getType() method on any IMendixObject which will return the same module.entity name as a string (in fact, this is what the getTypeAsString action is doing behind the scenes!).
Download the Mx Model reflection module from the appstore. This will store your model as data.