nl.pdok.catalogus.model.Dataset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geoserver-workspace-builder Show documentation
Show all versions of geoserver-workspace-builder Show documentation
PDOK Geoserver Workspace Builder
The newest version!
package nl.pdok.catalogus.model;
import org.apache.commons.lang.StringUtils;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
/**
* Created with IntelliJ IDEA.
* User: nijhur
* Date: 4-11-14
* Time: 11:57
* To change this template use File | Settings | File Templates.
*/
@JsonIgnoreProperties(ignoreUnknown=true)
public class Dataset {
private String name;
private String metadata_id;
private String metadata_bron_id;
private String db_schema;
private String raster_store;
private String mosaic_store;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMetadata_id() {
return metadata_id;
}
public void setMetadata_id(String metadata_id) {
this.metadata_id = metadata_id;
}
public String getMetadata_bron_id() {
return metadata_bron_id;
}
public void setMetadata_bron_id(String metadata_bron_id) {
this.metadata_bron_id = metadata_bron_id;
}
public String getDb_schema() {
return checkNameEmpty(db_schema);
}
public void setDb_schema(String db_schema) {
this.db_schema = db_schema;
}
public String getRaster_store() {
return checkNameEmpty(raster_store);
}
public void setRaster_store(String raster_store) {
this.raster_store = raster_store;
}
public String getMosaic_store() {
return checkNameEmpty(mosaic_store);
}
public void setMosaic_store(String mosaic_store) {
this.mosaic_store = mosaic_store;
}
public String checkNameEmpty(String storename) {
if (StringUtils.isEmpty(db_schema) && StringUtils.isEmpty(raster_store) && StringUtils.isEmpty(mosaic_store)) {
return name;
} else {
return storename;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy