Project

General

Profile

Download (1.92 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.name;
10

    
11
/**
12
 * @author a.mueller
13
 * @since 18.11.2020
14
 */
15
public interface INomenclaturalStanding {
16

    
17
    //Explicit status
18

    
19
    /**
20
     * Corresponds to {@link NomenclaturalStanding#OTHER_DESIGNATION}
21
     */
22
    public boolean isDesignationOnly();
23

    
24
    /**
25
     * Corresponds to {@link NomenclaturalStanding#INVALID}
26
     */
27
    public boolean isInvalidExplicit();
28

    
29
    /**
30
     * Corresponds to {@link NomenclaturalStanding#ILLEGITIMATE}
31
     */
32
    public boolean isIllegitimate();
33

    
34
    /**
35
     * Corresponds to {@link NomenclaturalStanding#VALID}
36
     */
37
    public boolean isValidExplicit();
38

    
39
    /**
40
     * Corresponds to {@link NomenclaturalStanding#NONE}
41
     */
42
    public boolean isNoStatus();
43

    
44
    //combined status
45

    
46
    /**
47
     * Returns <code>true</code> if this does not represent a
48
     * name but only a designation. So it is <code>true</code> for
49
     * {@link NomenclaturalStanding#INVALID} and {@link NomenclaturalStanding#OTHER_DESIGNATION}
50
     */
51
    public boolean isInvalid();
52

    
53
    /**
54
     * Returns <code>true</code> if the status indicates a valid and not
55
     * illegitimate name or if no explicit status is mentioned.
56
     * So it is <code>true</code> for
57
     * {@link NomenclaturalStanding#VALID} and {@link NomenclaturalStanding#NONE}
58
     */
59
    public boolean isLegitimate();
60

    
61
    /**
62
     * Returns <code>true</code> if the status indicates a valid name (legitimate or not)
63
     * or if no explicit status is mentioned.
64
     * So it is <code>true</code> for
65
     * {@link NomenclaturalStanding#VALID}, {@link NomenclaturalStanding#ILLEGITIMATE}
66
     * and {@link NomenclaturalStanding#NONE}
67
     */
68
    public boolean isValid();
69

    
70
}
(8-8/39)