Project

General

Profile

Download (1.32 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2020 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.model.metadata;
10

    
11
/**
12
 * @author k.luther
13
 * @since Dec 1, 2020
14
 */
15
public enum SecReferenceHandlingEnum implements IKeyLabel {
16

    
17
//    AlwaysDelete("AlwaysDelete", "Remove all related secundum references"),
18
//    WarningSelect("WarningSelect", "If secs differ select new one"),
19
//    WarnWhenDifferent("WarnWhenDifferent", "Warn if secs are different"),
20

    
21
    AlwaysDelete("AlwaysDelete", "Always remove secundum references"),
22
    AlwaysSelect("AlwaysSelect", "Always select new secundum references"),
23
    KeepOrSelect("KeepOrSelect", "Keep if all related secs are the same, select otherwise"),
24
    KeepOrWarn("KeepOrWarn", "Keep if all related secs are the same, warn otherwise"),
25
    UseNewParentSec("UseNewParentSec", "Always use new parent sec");
26

    
27

    
28
    private String label;
29
    private String key;
30

    
31
    private SecReferenceHandlingEnum(String key, String label){
32
        this.label = label;
33
        this.key = key;
34
    }
35

    
36
    @Override
37
    public String getLabel() {
38
        return label;
39
    }
40

    
41
    @Override
42
    public String getKey() {
43
        return key;
44
    }
45
}
(13-13/19)