1
|
/**
|
2
|
*
|
3
|
*/
|
4
|
package eu.etaxonomy.cdm.io.common;
|
5
|
|
6
|
import org.apache.log4j.Logger;
|
7
|
|
8
|
import eu.etaxonomy.cdm.model.location.NamedArea;
|
9
|
|
10
|
/**
|
11
|
* This class is meant to remove the pre v3.3 class TdwgArea in cdmlib-model.
|
12
|
* It may be changed or fully removed in future when we implement a more
|
13
|
* general solution for terms.
|
14
|
*
|
15
|
* @author a.mueller
|
16
|
* @since 11.6.2013
|
17
|
*
|
18
|
*/
|
19
|
@Deprecated
|
20
|
public class TdwgAreaProvider {
|
21
|
@SuppressWarnings("unused")
|
22
|
private static final Logger logger = Logger.getLogger(TdwgAreaProvider.class);
|
23
|
|
24
|
|
25
|
//************************** METHODS ********************************
|
26
|
|
27
|
|
28
|
/**
|
29
|
*/
|
30
|
public static NamedArea getAreaByTdwgAbbreviation(String tdwgAbbreviation){
|
31
|
return NamedArea.getAreaByTdwgAbbreviation(tdwgAbbreviation);
|
32
|
}
|
33
|
|
34
|
/**
|
35
|
*/
|
36
|
public static NamedArea getAreaByTdwgLabel(String tdwgLabel){
|
37
|
return NamedArea.getAreaByTdwgLabel(tdwgLabel);
|
38
|
}
|
39
|
|
40
|
public static boolean isTdwgAreaLabel(String area) {
|
41
|
return NamedArea.isTdwgAreaLabel(area);
|
42
|
}
|
43
|
|
44
|
public static boolean isTdwgAreaAbbreviation(String abbrev) {
|
45
|
return NamedArea.isTdwgAreaAbbreviation(abbrev);
|
46
|
}
|
47
|
|
48
|
|
49
|
}
|