From: Matthew B. <mat...@ou...> - 2006-10-19 09:41:31
|
Naomi Miles wrote: > Quick q. I'm retrieving all Events for a resource. Is there a quick > way of finding out what type of Event they may be e.g. > NavigationEvent, LogBookEvent etc if (event instanceof NavigationEvent) { blah... } Event if you got the events through Event.findxxxx() they should be the correct object type when returned. If you are only wanting one type of events could you just use NavigationEvent.findxxxx() or create it if it doesn't exist? Most of the time code just wants to be able to call methods in Event API. Could you explain what you are trying todo when with all the events for a resource? -- -- Matthew Buckett, VLE Developer -- Learning Technologies Group, Oxford University Computing Services -- Tel: +44 (0)1865 283660 http://www.oucs.ox.ac.uk/ltg/ |