1
|
/**
|
2
|
* Copyright (C) 2021 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.compare.name;
|
10
|
|
11
|
import eu.etaxonomy.cdm.model.name.TypeDesignationStatusBase;
|
12
|
import eu.etaxonomy.cdm.model.term.TermType;
|
13
|
import eu.etaxonomy.cdm.model.term.TermVocabulary;
|
14
|
|
15
|
/**
|
16
|
* NOTE: This class was moved here from TypeDesignationSet to allow to be used
|
17
|
* in model compare classes.
|
18
|
*
|
19
|
* @author a.kohlbecker
|
20
|
* @since Mar 10, 2017
|
21
|
*/
|
22
|
public class NullTypeDesignationStatus extends TypeDesignationStatusBase<NullTypeDesignationStatus>{
|
23
|
|
24
|
private static final long serialVersionUID = -2521279149219093956L;
|
25
|
|
26
|
private static final NullTypeDesignationStatus singleton = new NullTypeDesignationStatus();
|
27
|
|
28
|
public static final NullTypeDesignationStatus SINGLETON(){
|
29
|
return singleton;
|
30
|
}
|
31
|
|
32
|
private NullTypeDesignationStatus(){super(TermType.NameTypeDesignationStatus);} //just take any type
|
33
|
|
34
|
@Override
|
35
|
public void resetTerms() {}
|
36
|
|
37
|
@Override
|
38
|
protected void setDefaultTerms(TermVocabulary<NullTypeDesignationStatus> termVocabulary) {}
|
39
|
|
40
|
@Override
|
41
|
public boolean hasDesignationSource() {
|
42
|
return false;
|
43
|
}
|
44
|
}
|