mirror of
https://github.com/ilri/cgspace-java-helpers.git
synced 2024-09-20 17:34:46 +02:00
Alan Orth
dcb0532be2
It's much easier to get your package verified on Central if it uses a GitHub groupId. Otherwise you need to use DNS verification! This changes the groupId: - from: org.cgiar.cgspace.ctask - to: io.github.ilri.cgspace Also the package changed as well. See: https://central.sonatype.org/pages/producers.html
78 lines
2.4 KiB
Java
78 lines
2.4 KiB
Java
/*
|
|
DSpace Curation Tasks
|
|
Copyright (C) 2020 Alan Orth
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
package io.github.ilri.cgspace.ctasks;
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
public class CountriesVocabulary {
|
|
|
|
class Country {
|
|
private String name; //required
|
|
private String common_name; //optional
|
|
private String official_name; //optional
|
|
private String cgspace_name; //optional
|
|
private String numeric; //required Hmmmm need to cast this...
|
|
private String alpha_2; //required
|
|
private String alpha_3; //required
|
|
|
|
public Country(String name,
|
|
@Nullable String common_name,
|
|
@Nullable String official_name,
|
|
@Nullable String cgspace_name,
|
|
String numeric,
|
|
String alpha_2,
|
|
String alpha_3) {
|
|
this.name = name;
|
|
this.common_name = common_name;
|
|
this.official_name = official_name;
|
|
this.cgspace_name = cgspace_name;
|
|
this.numeric = numeric; // fuuuuu this is a string and we can't cast to Integer because some values are zeropadded like "004"
|
|
this.alpha_2 = alpha_2;
|
|
this.alpha_3 = alpha_3;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public String getNumeric() {
|
|
return numeric;
|
|
}
|
|
|
|
public String get_common_name() {
|
|
return common_name;
|
|
}
|
|
|
|
public String get_official_name() {
|
|
return official_name;
|
|
}
|
|
|
|
public String getAlpha_2() {
|
|
return alpha_2;
|
|
}
|
|
|
|
public String getAlpha_3() {
|
|
return alpha_3;
|
|
}
|
|
|
|
public String getCgspace_name() {
|
|
return cgspace_name;
|
|
}
|
|
}
|
|
} |