source: trunk/grails-app/domain/dbnp/studycapturing/EventDescription.groovy @ 247

Last change on this file since 247 was 247, checked in by duh, 9 years ago
  • set keyword expansion
  • Property svn:keywords set to Author Rev Date
File size: 802 bytes
Line 
1package dbnp.studycapturing
2
3import dbnp.data.Term
4
5/**
6 * Description of an event. Actual events are described by instances of the Event class.
7 * For the moment, EventDescription is not linked to a specific study or user.
8 * This means that the user can add events of all possible event types as defined by the (global) EventDescription collection.
9 *
10 * Revision information:
11 * $Rev: 247 $
12 * $Author: duh $
13 * $Date: 2010-03-08 17:29:14 +0000 (ma, 08 mrt 2010) $
14 */
15class EventDescription implements Serializable {
16        String name
17        String description
18        Term classification
19        Protocol protocol
20        boolean isSamplingEvent
21
22        static constraints = {
23                name(nullable: false, blank: false)
24                description(nullable: false, blank: false)
25                classification(nullable: true, blank: true)
26                protocol(nullable: true, blank: true)
27        }
28
29        def String toString() {
30                return name
31        }
32}
Note: See TracBrowser for help on using the repository browser.