types in drupal

How to catch drupal modules in a model. The question becomes do I want to hardcode concepts like menu/paths and forms with fields. Or do I (try to) generalise this in to the concept of a DrupalType that consists of a name and a list of innertypes. The name of a type is the associative index key in php.

I need to try some examples to see if this works.