Project

General

Profile

Download (1.05 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 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
import java.util.UUID;
12

    
13
import eu.etaxonomy.cdm.model.common.Language;
14

    
15
/**
16
 * @author a.mueller
17
 * @since 12.11.2018
18
 */
19
public interface IPreferencePredicate<T extends Object> {
20

    
21
    public String getKey();
22

    
23
    public T getDefaultValue();
24

    
25
    public String getLabel();
26

    
27
    public String getLabel(Language language);
28

    
29
    public UUID getUuid();
30

    
31

    
32
    //until now we don't think Predicates will be hierarchical therefore we don't use these methods from IEnumTerm
33
    //maybe it will come in future
34
    //
35
    //    IPreferencePredicate getKindOf();
36
    //
37
    //    Set<PreferencePredicate> getGeneralizationOf();
38
    //
39
    //    boolean isKindOf(IPreferencePredicate ancestor);
40
    //
41
    //    Set<PreferencePredicate> getGeneralizationOf(boolean recursive);
42

    
43
}
(6-6/18)