-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPays.java
130 lines (107 loc) · 3.74 KB
/
Pays.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package fr.insee.rmes.modeles.geo.territoire;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import io.swagger.v3.oas.annotations.media.Schema;
@XmlRootElement(name = "Pays")
@JacksonXmlRootElement(localName = "Pays")
@XmlAccessorType(XmlAccessType.FIELD)
@Schema(description = "Objet représentant un pays")
@JsonIgnoreProperties({ "intituleSansArticle","typeArticle","intitule","inituleEntier"})
public class Pays extends Territoire {
@Schema(example = "99100")
private String code = null;
@Schema(example ="http://id.insee.fr/geo/pays/b7e3f0c9-b653-4a3e-904a-de63b80e108b")
private String uri = null;
@Schema(example = "France")
private String nom = null;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Schema(example = "République française")
private String nomLong = null;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Schema(example = "FR")
private String iso3166alpha2 = null;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Schema(example = "FRA")
private String iso3166alpha3 = null;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Schema(example = "250")
private String iso3166num = null;
@Schema(example = "1943-01-01")
private String dateCreation = null;
@Schema(example = "2025-12-12")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private String dateSuppresion = null;
public Pays() {} // No-args constructor needed for JAXB
public Pays(String code) {
this.code = code;
}
@XmlAttribute
@JacksonXmlProperty(isAttribute = true)
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
@XmlAttribute
@JacksonXmlProperty(isAttribute = true)
public String getUri() {
return uri;
}
public void setUri(String uri) {
this.uri = uri;
}
@XmlElement(name = "Nom")
@JacksonXmlProperty(localName = "Nom")
@JsonProperty(value = "nom")
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
@XmlElement(name = "NomLong")
@JacksonXmlProperty(localName = "NomLong")
@JsonProperty(value = "nomLong")
public String getNomLong() {
return nomLong;
}
public void setNomLong(String nomLong) {
this.nomLong = nomLong;
}
@XmlElement(name = "Iso3166alpha2")
@JacksonXmlProperty(localName = "Iso3166alpha2")
@JsonProperty(value = "iso3166alpha2")
public String getIso3166alpha2() {
return iso3166alpha2;
}
public void setIso3166alpha2(String iso3166alpha2) {
this.iso3166alpha2 = iso3166alpha2;
}
@XmlElement(name = "Iso3166alpha3")
@JacksonXmlProperty(localName = "Iso3166alpha3")
@JsonProperty(value = "iso3166alpha3")
public String getIso3166alpha3() {
return iso3166alpha3;
}
public void setIso3166alpha3(String iso3166alpha3) {
this.iso3166alpha3 = iso3166alpha3;
}
@XmlElement(name = "Iso3166num")
@JacksonXmlProperty(localName = "Iso3166num")
@JsonProperty(value = "iso3166num")
public String getIso3166num() {
return iso3166num;
}
public void setIso3166num(String iso3166num) {
this.iso3166num = iso3166num;
}
}