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
|
*/
|
20
|
public interface IPreferencePredicate<T extends Object> {
|
21
|
|
22
|
public String getKey();
|
23
|
|
24
|
public T getDefaultValue();
|
25
|
|
26
|
public String getMessage();
|
27
|
|
28
|
public String getMessage(Language language);
|
29
|
|
30
|
public UUID getUuid();
|
31
|
|
32
|
|
33
|
//until now we don't think Predicates will be hierarchical therefore we don't use these methods from IEnumTerm
|
34
|
//maybe it will come in future
|
35
|
//
|
36
|
// IPreferencePredicate getKindOf();
|
37
|
//
|
38
|
// Set<PreferencePredicate> getGeneralizationOf();
|
39
|
//
|
40
|
// boolean isKindOf(IPreferencePredicate ancestor);
|
41
|
//
|
42
|
// Set<PreferencePredicate> getGeneralizationOf(boolean recursive);
|
43
|
|
44
|
}
|