Last change
on this file since 506 was
506,
checked in by keesvb, 13 years ago
|
changed giveDomainFields() implementations in TemplateEntity? to static
|
-
Property svn:keywords set to
Date Rev Author
|
File size:
934 bytes
|
Line | |
---|
1 | package dbnp.studycapturing |
---|
2 | |
---|
3 | import dbnp.data.Term |
---|
4 | import dbnp.data.Ontology |
---|
5 | |
---|
6 | /** |
---|
7 | * This domain class describes the subjects in a study. |
---|
8 | * |
---|
9 | * Revision information: |
---|
10 | * $Rev: 506 $ |
---|
11 | * $Author: keesvb $ |
---|
12 | * $Date: 2010-06-01 11:09:06 +0000 (di, 01 jun 2010) $ |
---|
13 | */ |
---|
14 | class Subject extends TemplateEntity implements Serializable { |
---|
15 | static searchable = true |
---|
16 | String name |
---|
17 | Term species |
---|
18 | |
---|
19 | /** |
---|
20 | * return the domain fields for this domain class |
---|
21 | * @return List |
---|
22 | */ |
---|
23 | static List<TemplateField> giveDomainFields() { return Subject.domainFields; } |
---|
24 | |
---|
25 | static List<TemplateField> domainFields = |
---|
26 | [ |
---|
27 | new TemplateField( |
---|
28 | name: 'name', |
---|
29 | type: TemplateFieldType.STRING, |
---|
30 | preferredIdentifier: true, |
---|
31 | comment: 'Use the local subject name or the pre-defined name'), |
---|
32 | new TemplateField( |
---|
33 | name: 'species', |
---|
34 | type: TemplateFieldType.ONTOLOGYTERM, |
---|
35 | comment: "The species name is based on the NEWT ontology; if a species is missing, please add it to the ontology using 'add more'") |
---|
36 | ] |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.