All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anwiba.spatial.topo.json.v01_0.GeometryCollection Maven / Gradle / Ivy

The newest version!
//Copyright (c) 2017 by Andreas W. Bartels
package net.anwiba.spatial.topo.json.v01_0;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;

public class GeometryCollection
    extends net.anwiba.spatial.topo.json.v01_0.Geometry
{

    private final String type = "GeometryCollection";
    private net.anwiba.spatial.topo.json.v01_0.Geometry[] geometries = null;
    private final Map _unknownMembers = new LinkedHashMap<>();

    @JsonProperty("type")
    public void setType(final String type) {
    }

    @JsonProperty("type")
    public String getType() {
        return this.type;
    }

    @JsonProperty("geometries")
    public void setGeometries(final net.anwiba.spatial.topo.json.v01_0.Geometry[] geometries) {
        this.geometries = geometries;
    }

    @JsonProperty("geometries")
    public net.anwiba.spatial.topo.json.v01_0.Geometry[] getGeometries() {
        return this.geometries;
    }

    @JsonAnySetter
    public void set(final java.lang.String name, final Object value) {
        Objects.requireNonNull(name);
        this._unknownMembers.put(name, value);
    }

    @JsonAnyGetter
    public Map get() {
        if (this._unknownMembers.isEmpty()) {
            return null;
        }
        return this._unknownMembers;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy