Skip to content

Commit

Permalink
[GENERATE] Java classes from JSON Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dapla-bot[bot] committed Feb 12, 2024
1 parent 37063e2 commit c42c4e1
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 334 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,39 +102,39 @@ public class Dataset implements Serializable
@NotNull
private Dataset.DataSetState datasetState;
/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("name")
@Valid
@NotNull
private LanguageStringType name;
private List<Object> name = new ArrayList<Object>();
/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("description")
@Valid
@NotNull
private LanguageStringType description;
private List<Object> description = new ArrayList<Object>();
/**
* Reusable langugage string type
* Reusableb langugage string type
*
*/
@JsonProperty("data_source")
@Valid
private LanguageStringType dataSource;
private List<Object> dataSource = new ArrayList<Object>();
/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("population_description")
@Valid
@NotNull
private LanguageStringType populationDescription;
private List<Object> populationDescription = new ArrayList<Object>();
/**
* Version
* <p>
Expand All @@ -147,12 +147,12 @@ public class Dataset implements Serializable
@NotNull
private String version;
/**
* Reusable langugage string type
* Reusableb langugage string type
*
*/
@JsonProperty("version_description")
@Valid
private LanguageStringType versionDescription;
private List<Object> versionDescription = new ArrayList<Object>();
/**
* Unit type
* <p>
Expand Down Expand Up @@ -192,12 +192,12 @@ public class Dataset implements Serializable
@Valid
private List<String> keyword = new ArrayList<String>();
/**
* Reusable langugage string type
* Reusableb langugage string type
*
*/
@JsonProperty("spatial_coverage_description")
@Valid
private LanguageStringType spatialCoverageDescription;
private List<Object> spatialCoverageDescription = new ArrayList<Object>();
/**
* Contains personal data
* <p>
Expand Down Expand Up @@ -249,14 +249,14 @@ public class Dataset implements Serializable
@NotNull
private UUID id;
/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("owner")
@Valid
@NotNull
private LanguageStringType owner;
private List<Object> owner = new ArrayList<Object>();
/**
* File path
* <p>
Expand Down Expand Up @@ -333,7 +333,7 @@ public class Dataset implements Serializable
@JsonIgnore
@Valid
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();
private final static long serialVersionUID = -8972953542524169720L;
private final static long serialVersionUID = -7019746965862498234L;

/**
* No args constructor for use in serialization
Expand Down Expand Up @@ -401,7 +401,7 @@ public Dataset() {
* @param dataSource
* Data source. Data source. Set either for the data set or instance variable.
*/
public Dataset(String shortName, Dataset.Assessment assessment, Dataset.DataSetStatus datasetStatus, Dataset.DataSetState datasetState, LanguageStringType name, LanguageStringType description, LanguageStringType dataSource, LanguageStringType populationDescription, String version, LanguageStringType versionDescription, Dataset.UnitType unitType, Dataset.TemporalityTypeType temporalityType, String subjectField, List<String> keyword, LanguageStringType spatialCoverageDescription, Boolean containsPersonalData, Dataset.UseRestriction useRestriction, Date useRestrictionDate, List<CustomType> customType, UUID id, LanguageStringType owner, String filePath, Date metadataCreatedDate, String metadataCreatedBy, Date metadataLastUpdatedDate, String metadataLastUpdatedBy, String containsDataFrom, String containsDataUntil) {
public Dataset(String shortName, Dataset.Assessment assessment, Dataset.DataSetStatus datasetStatus, Dataset.DataSetState datasetState, List<Object> name, List<Object> description, List<Object> dataSource, List<Object> populationDescription, String version, List<Object> versionDescription, Dataset.UnitType unitType, Dataset.TemporalityTypeType temporalityType, String subjectField, List<String> keyword, List<Object> spatialCoverageDescription, Boolean containsPersonalData, Dataset.UseRestriction useRestriction, Date useRestrictionDate, List<CustomType> customType, UUID id, List<Object> owner, String filePath, Date metadataCreatedDate, String metadataCreatedBy, Date metadataLastUpdatedDate, String metadataLastUpdatedBy, String containsDataFrom, String containsDataUntil) {
super();
this.shortName = shortName;
this.assessment = assessment;
Expand Down Expand Up @@ -534,80 +534,80 @@ public void setDatasetState(Dataset.DataSetState datasetState) {
}

/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("name")
public LanguageStringType getName() {
public List<Object> getName() {
return name;
}

/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("name")
public void setName(LanguageStringType name) {
public void setName(List<Object> name) {
this.name = name;
}

/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("description")
public LanguageStringType getDescription() {
public List<Object> getDescription() {
return description;
}

/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("description")
public void setDescription(LanguageStringType description) {
public void setDescription(List<Object> description) {
this.description = description;
}

/**
* Reusable langugage string type
* Reusableb langugage string type
*
*/
@JsonProperty("data_source")
public LanguageStringType getDataSource() {
public List<Object> getDataSource() {
return dataSource;
}

/**
* Reusable langugage string type
* Reusableb langugage string type
*
*/
@JsonProperty("data_source")
public void setDataSource(LanguageStringType dataSource) {
public void setDataSource(List<Object> dataSource) {
this.dataSource = dataSource;
}

/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("population_description")
public LanguageStringType getPopulationDescription() {
public List<Object> getPopulationDescription() {
return populationDescription;
}

/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("population_description")
public void setPopulationDescription(LanguageStringType populationDescription) {
public void setPopulationDescription(List<Object> populationDescription) {
this.populationDescription = populationDescription;
}

Expand Down Expand Up @@ -636,20 +636,20 @@ public void setVersion(String version) {
}

/**
* Reusable langugage string type
* Reusableb langugage string type
*
*/
@JsonProperty("version_description")
public LanguageStringType getVersionDescription() {
public List<Object> getVersionDescription() {
return versionDescription;
}

/**
* Reusable langugage string type
* Reusableb langugage string type
*
*/
@JsonProperty("version_description")
public void setVersionDescription(LanguageStringType versionDescription) {
public void setVersionDescription(List<Object> versionDescription) {
this.versionDescription = versionDescription;
}

Expand Down Expand Up @@ -742,20 +742,20 @@ public void setKeyword(List<String> keyword) {
}

/**
* Reusable langugage string type
* Reusableb langugage string type
*
*/
@JsonProperty("spatial_coverage_description")
public LanguageStringType getSpatialCoverageDescription() {
public List<Object> getSpatialCoverageDescription() {
return spatialCoverageDescription;
}

/**
* Reusable langugage string type
* Reusableb langugage string type
*
*/
@JsonProperty("spatial_coverage_description")
public void setSpatialCoverageDescription(LanguageStringType spatialCoverageDescription) {
public void setSpatialCoverageDescription(List<Object> spatialCoverageDescription) {
this.spatialCoverageDescription = spatialCoverageDescription;
}

Expand Down Expand Up @@ -874,22 +874,22 @@ public void setId(UUID id) {
}

/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("owner")
public LanguageStringType getOwner() {
public List<Object> getOwner() {
return owner;
}

/**
* Reusable langugage string type
* Reusableb langugage string type
* (Required)
*
*/
@JsonProperty("owner")
public void setOwner(LanguageStringType owner) {
public void setOwner(List<Object> owner) {
this.owner = owner;
}

Expand Down Expand Up @@ -1299,7 +1299,7 @@ public DatasetBuilder() {
super();
}

public DatasetBuilder(String shortName, Dataset.Assessment assessment, Dataset.DataSetStatus datasetStatus, Dataset.DataSetState datasetState, LanguageStringType name, LanguageStringType description, LanguageStringType dataSource, LanguageStringType populationDescription, String version, LanguageStringType versionDescription, Dataset.UnitType unitType, Dataset.TemporalityTypeType temporalityType, String subjectField, List<String> keyword, LanguageStringType spatialCoverageDescription, Boolean containsPersonalData, Dataset.UseRestriction useRestriction, Date useRestrictionDate, List<CustomType> customType, UUID id, LanguageStringType owner, String filePath, Date metadataCreatedDate, String metadataCreatedBy, Date metadataLastUpdatedDate, String metadataLastUpdatedBy, String containsDataFrom, String containsDataUntil) {
public DatasetBuilder(String shortName, Dataset.Assessment assessment, Dataset.DataSetStatus datasetStatus, Dataset.DataSetState datasetState, List<Object> name, List<Object> description, List<Object> dataSource, List<Object> populationDescription, String version, List<Object> versionDescription, Dataset.UnitType unitType, Dataset.TemporalityTypeType temporalityType, String subjectField, List<String> keyword, List<Object> spatialCoverageDescription, Boolean containsPersonalData, Dataset.UseRestriction useRestriction, Date useRestrictionDate, List<CustomType> customType, UUID id, List<Object> owner, String filePath, Date metadataCreatedDate, String metadataCreatedBy, Date metadataLastUpdatedDate, String metadataLastUpdatedBy, String containsDataFrom, String containsDataUntil) {
super(shortName, assessment, datasetStatus, datasetState, name, description, dataSource, populationDescription, version, versionDescription, unitType, temporalityType, subjectField, keyword, spatialCoverageDescription, containsPersonalData, useRestriction, useRestrictionDate, customType, id, owner, filePath, metadataCreatedDate, metadataCreatedBy, metadataLastUpdatedDate, metadataLastUpdatedBy, containsDataFrom, containsDataUntil);
}

Expand All @@ -1318,7 +1318,7 @@ public DatasetBuilderBase() {
}

@SuppressWarnings("unchecked")
public DatasetBuilderBase(String shortName, Dataset.Assessment assessment, Dataset.DataSetStatus datasetStatus, Dataset.DataSetState datasetState, LanguageStringType name, LanguageStringType description, LanguageStringType dataSource, LanguageStringType populationDescription, String version, LanguageStringType versionDescription, Dataset.UnitType unitType, Dataset.TemporalityTypeType temporalityType, String subjectField, List<String> keyword, LanguageStringType spatialCoverageDescription, Boolean containsPersonalData, Dataset.UseRestriction useRestriction, Date useRestrictionDate, List<CustomType> customType, UUID id, LanguageStringType owner, String filePath, Date metadataCreatedDate, String metadataCreatedBy, Date metadataLastUpdatedDate, String metadataLastUpdatedBy, String containsDataFrom, String containsDataUntil) {
public DatasetBuilderBase(String shortName, Dataset.Assessment assessment, Dataset.DataSetStatus datasetStatus, Dataset.DataSetState datasetState, List<Object> name, List<Object> description, List<Object> dataSource, List<Object> populationDescription, String version, List<Object> versionDescription, Dataset.UnitType unitType, Dataset.TemporalityTypeType temporalityType, String subjectField, List<String> keyword, List<Object> spatialCoverageDescription, Boolean containsPersonalData, Dataset.UseRestriction useRestriction, Date useRestrictionDate, List<CustomType> customType, UUID id, List<Object> owner, String filePath, Date metadataCreatedDate, String metadataCreatedBy, Date metadataLastUpdatedDate, String metadataLastUpdatedBy, String containsDataFrom, String containsDataUntil) {
// Skip initialization when called from subclass
if (this.getClass().equals(Dataset.DatasetBuilder.class)) {
this.instance = ((T) new Dataset(shortName, assessment, datasetStatus, datasetState, name, description, dataSource, populationDescription, version, versionDescription, unitType, temporalityType, subjectField, keyword, spatialCoverageDescription, containsPersonalData, useRestriction, useRestrictionDate, customType, id, owner, filePath, metadataCreatedDate, metadataCreatedBy, metadataLastUpdatedDate, metadataLastUpdatedBy, containsDataFrom, containsDataUntil));
Expand Down Expand Up @@ -1352,22 +1352,22 @@ public Dataset.DatasetBuilderBase withDatasetState(Dataset.DataSetState datasetS
return this;
}

public Dataset.DatasetBuilderBase withName(LanguageStringType name) {
public Dataset.DatasetBuilderBase withName(List<Object> name) {
((Dataset) this.instance).name = name;
return this;
}

public Dataset.DatasetBuilderBase withDescription(LanguageStringType description) {
public Dataset.DatasetBuilderBase withDescription(List<Object> description) {
((Dataset) this.instance).description = description;
return this;
}

public Dataset.DatasetBuilderBase withDataSource(LanguageStringType dataSource) {
public Dataset.DatasetBuilderBase withDataSource(List<Object> dataSource) {
((Dataset) this.instance).dataSource = dataSource;
return this;
}

public Dataset.DatasetBuilderBase withPopulationDescription(LanguageStringType populationDescription) {
public Dataset.DatasetBuilderBase withPopulationDescription(List<Object> populationDescription) {
((Dataset) this.instance).populationDescription = populationDescription;
return this;
}
Expand All @@ -1377,7 +1377,7 @@ public Dataset.DatasetBuilderBase withVersion(String version) {
return this;
}

public Dataset.DatasetBuilderBase withVersionDescription(LanguageStringType versionDescription) {
public Dataset.DatasetBuilderBase withVersionDescription(List<Object> versionDescription) {
((Dataset) this.instance).versionDescription = versionDescription;
return this;
}
Expand All @@ -1402,7 +1402,7 @@ public Dataset.DatasetBuilderBase withKeyword(List<String> keyword) {
return this;
}

public Dataset.DatasetBuilderBase withSpatialCoverageDescription(LanguageStringType spatialCoverageDescription) {
public Dataset.DatasetBuilderBase withSpatialCoverageDescription(List<Object> spatialCoverageDescription) {
((Dataset) this.instance).spatialCoverageDescription = spatialCoverageDescription;
return this;
}
Expand Down Expand Up @@ -1432,7 +1432,7 @@ public Dataset.DatasetBuilderBase withId(UUID id) {
return this;
}

public Dataset.DatasetBuilderBase withOwner(LanguageStringType owner) {
public Dataset.DatasetBuilderBase withOwner(List<Object> owner) {
((Dataset) this.instance).owner = owner;
return this;
}
Expand Down
Loading

0 comments on commit c42c4e1

Please sign in to comment.