Take a look at the section of the documentation called "Element Overview".
(Of course, to be like Roofmaker, you understand that you need to set things up so that your add-on receives notifications about the elements that you are associating your objects with.)