1 |
9479da48
|
Andreas Müller
|
package eu.etaxonomy.cdm.model.occurrence;
|
2 |
|
|
|
3 |
b8615f45
|
Andreas Müller
|
import java.util.UUID;
|
4 |
|
|
|
5 |
9479da48
|
Andreas Müller
|
import javax.persistence.Entity;
|
6 |
4e9e556b
|
a.babadshanjan
|
import javax.xml.bind.annotation.XmlAccessType;
|
7 |
|
|
import javax.xml.bind.annotation.XmlAccessorType;
|
8 |
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
9 |
|
|
import javax.xml.bind.annotation.XmlType;
|
10 |
|
|
|
11 |
9479da48
|
Andreas Müller
|
import org.apache.log4j.Logger;
|
12 |
|
|
import eu.etaxonomy.cdm.model.description.Modifier;
|
13 |
|
|
|
14 |
cf45175b
|
m.doering
|
/**
|
15 |
|
|
* modifier for a determination.
|
16 |
|
|
* can be cf. det. rev. conf. for example
|
17 |
|
|
* @author m.doering
|
18 |
|
|
*
|
19 |
|
|
*/
|
20 |
4e9e556b
|
a.babadshanjan
|
@XmlAccessorType(XmlAccessType.FIELD)
|
21 |
|
|
@XmlType(name = "DeterminationModifier")
|
22 |
|
|
@XmlRootElement(name = "DeterminationModifier")
|
23 |
9479da48
|
Andreas Müller
|
@Entity
|
24 |
|
|
public class DeterminationModifier extends Modifier {
|
25 |
b484eedb
|
Andreas Müller
|
private static final Logger logger = Logger.getLogger(DeterminationModifier.class);
|
26 |
9479da48
|
Andreas Müller
|
|
27 |
b8615f45
|
Andreas Müller
|
private static final UUID uuidUnknown = UUID.fromString("00000000-0000-0000-0000-000000000000");
|
28 |
|
|
|
29 |
|
|
|
30 |
b484eedb
|
Andreas Müller
|
/**
|
31 |
|
|
* Factory method
|
32 |
|
|
* @return
|
33 |
|
|
*/
|
34 |
|
|
public static DeterminationModifier NewInstance() {
|
35 |
|
|
return new DeterminationModifier();
|
36 |
|
|
}
|
37 |
|
|
|
38 |
|
|
/**
|
39 |
|
|
* Factory method
|
40 |
|
|
* @return
|
41 |
|
|
*/
|
42 |
41b23b4e
|
Andreas Müller
|
public static DeterminationModifier NewInstance(String term, String label, String labelAbbrev) {
|
43 |
|
|
return new DeterminationModifier(term, label, labelAbbrev);
|
44 |
b484eedb
|
Andreas Müller
|
}
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
/**
|
48 |
|
|
* Constructor
|
49 |
|
|
*/
|
50 |
|
|
protected DeterminationModifier() {
|
51 |
9479da48
|
Andreas Müller
|
super();
|
52 |
|
|
}
|
53 |
|
|
|
54 |
b484eedb
|
Andreas Müller
|
|
55 |
|
|
/**
|
56 |
|
|
* Constructor
|
57 |
|
|
*/
|
58 |
41b23b4e
|
Andreas Müller
|
protected DeterminationModifier(String term, String label, String labelAbbrev) {
|
59 |
|
|
super(term, label, labelAbbrev);
|
60 |
9479da48
|
Andreas Müller
|
}
|
61 |
b8615f45
|
Andreas Müller
|
|
62 |
|
|
|
63 |
|
|
public static final DeterminationModifier getByUuid(UUID uuid){
|
64 |
|
|
return (DeterminationModifier)findByUuid(uuid);
|
65 |
|
|
}
|
66 |
|
|
|
67 |
9479da48
|
Andreas Müller
|
|
68 |
|
|
}
|