Project

General

Profile

« Previous | Next » 

Revision 5465eca0

Added by Andreas Kohlbecker about 7 years ago

ref #6169 showing citation in list and eums items in UPPERCASE

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/presenter/phycobank/RegistrationType.java
17 17
 */
18 18
public enum RegistrationType {
19 19

  
20
    name, typification, invalid;
20
    NAME, TYPIFICATION, INVALID;
21 21

  
22 22
    /**
23 23
     * @param reg
......
25 25
     */
26 26
    public static RegistrationType from(Registration reg) {
27 27
        if(reg.getName() != null){
28
            return name;
28
            return NAME;
29 29
        }
30 30
        if(reg.getTypeDesignations().size() > 0){
31
            return typification;
31
            return TYPIFICATION;
32 32
        }
33
        return invalid;
33
        return INVALID;
34 34
    }
35 35

  
36 36
    /**
37 37
     * @return
38 38
     */
39 39
    public boolean isName() {
40
        return name.equals(this);
40
        return NAME.equals(this);
41 41

  
42 42
  }
43 43
    /**
44 44
     * @return
45 45
     */
46 46
    public boolean isTypification() {
47
        return typification.equals(this);
47
        return TYPIFICATION.equals(this);
48 48
    }
49 49

  
50 50
}

Also available in: Unified diff