Skip to content

Commit bc8e337

Browse files
[GENERATE] Java classes from JSON Schema
1 parent a5d6e18 commit bc8e337

File tree

1 file changed

+12
-0
lines changed
  • generated/java/datadoc-model/src/main/java/no/ssb/dapla/metadata/datadoc

1 file changed

+12
-0
lines changed

generated/java/datadoc-model/src/main/java/no/ssb/dapla/metadata/datadoc/Variable.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,23 @@ public class Variable implements Serializable
135135
* Unit type
136136
* <p>
137137
* Unit Type which this variable pertains to. Values shall be codes from https://www.ssb.no/klass/klassifikasjoner/702. See Definitions of Unit Types https://www.ssb.no/en/metadata/definisjoner-av-statistiske-enheter
138+
* (Required)
138139
*
139140
*/
140141
@JsonProperty("unit_type")
141142
@JsonPropertyDescription("Unit Type which this variable pertains to. Values shall be codes from https://www.ssb.no/klass/klassifikasjoner/702. See Definitions of Unit Types https://www.ssb.no/en/metadata/definisjoner-av-statistiske-enheter")
143+
@NotNull
142144
private String unitType;
143145
/**
144146
* Data source
145147
* <p>
146148
* The source of the data contained in this variable. Values shall be codes from https://www.ssb.no/klass/klassifikasjoner/712.
149+
* (Required)
147150
*
148151
*/
149152
@JsonProperty("data_source")
150153
@JsonPropertyDescription("The source of the data contained in this variable. Values shall be codes from https://www.ssb.no/klass/klassifikasjoner/712.")
154+
@NotNull
151155
private String dataSource;
152156
/**
153157
* Reusableb langugage string type
@@ -165,9 +169,11 @@ public class Variable implements Serializable
165169
private List<Object> comment = new ArrayList<Object>();
166170
/**
167171
* Reusable temporalitytype type
172+
* (Required)
168173
*
169174
*/
170175
@JsonProperty("temporality_type")
176+
@NotNull
171177
private Variable.TemporalityTypeType temporalityType;
172178
/**
173179
* Measurement unit
@@ -534,6 +540,7 @@ public void setPseudonymization(Pseudonymization pseudonymization) {
534540
* Unit type
535541
* <p>
536542
* Unit Type which this variable pertains to. Values shall be codes from https://www.ssb.no/klass/klassifikasjoner/702. See Definitions of Unit Types https://www.ssb.no/en/metadata/definisjoner-av-statistiske-enheter
543+
* (Required)
537544
*
538545
*/
539546
@JsonProperty("unit_type")
@@ -545,6 +552,7 @@ public String getUnitType() {
545552
* Unit type
546553
* <p>
547554
* Unit Type which this variable pertains to. Values shall be codes from https://www.ssb.no/klass/klassifikasjoner/702. See Definitions of Unit Types https://www.ssb.no/en/metadata/definisjoner-av-statistiske-enheter
555+
* (Required)
548556
*
549557
*/
550558
@JsonProperty("unit_type")
@@ -556,6 +564,7 @@ public void setUnitType(String unitType) {
556564
* Data source
557565
* <p>
558566
* The source of the data contained in this variable. Values shall be codes from https://www.ssb.no/klass/klassifikasjoner/712.
567+
* (Required)
559568
*
560569
*/
561570
@JsonProperty("data_source")
@@ -567,6 +576,7 @@ public String getDataSource() {
567576
* Data source
568577
* <p>
569578
* The source of the data contained in this variable. Values shall be codes from https://www.ssb.no/klass/klassifikasjoner/712.
579+
* (Required)
570580
*
571581
*/
572582
@JsonProperty("data_source")
@@ -612,6 +622,7 @@ public void setComment(List<Object> comment) {
612622

613623
/**
614624
* Reusable temporalitytype type
625+
* (Required)
615626
*
616627
*/
617628
@JsonProperty("temporality_type")
@@ -621,6 +632,7 @@ public Variable.TemporalityTypeType getTemporalityType() {
621632

622633
/**
623634
* Reusable temporalitytype type
635+
* (Required)
624636
*
625637
*/
626638
@JsonProperty("temporality_type")

0 commit comments

Comments
 (0)