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

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

There is a newer version: 1.2.50
Show newest version
//Copyright (c) 2017 by Andreas W. Bartels ([email protected])
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.JsonProperty;

public class Topologie {

    private final String type = "Topology";
    private Transform transform = null;
    private double[] bbox = null;
    private double[][][] arcs = null;
    private final Map objects = new LinkedHashMap();

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

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

    @JsonProperty("transform")
    public void setTransform(final Transform transform) {
        this.transform = transform;
    }

    @JsonProperty("transform")
    public Transform getTransform() {
        return this.transform;
    }

    @JsonProperty("bbox")
    public void setBbox(final double[] bbox) {
        this.bbox = bbox;
    }

    @JsonProperty("bbox")
    public double[] getBbox() {
        return this.bbox;
    }

    @JsonProperty("arcs")
    public void setArcs(final double[][][] arcs) {
        this.arcs = arcs;
    }

    @JsonProperty("arcs")
    public double[][][] getArcs() {
        return this.arcs;
    }

    public void setObjects(final java.lang.String name, final net.anwiba.spatial.topo.json.v01_0.GeometryCollection value) {
        Objects.requireNonNull(name);
        this.objects.put(name, value);
    }

    @JsonProperty("objects")
    public void setObjects(final Map objects) {
        if (objects == null) {
            this.objects.clear();
            return ;
        }
        this.objects.clear();
        this.objects.putAll(objects);
    }

    public net.anwiba.spatial.topo.json.v01_0.GeometryCollection getObjects(final java.lang.String name) {
        if (name == null) {
            return null;
        }
        return this.objects.get(name);
    }

    @JsonProperty("objects")
    public Map getObjects() {
        if (this.objects.isEmpty()) {
            return null;
        }
        return this.objects;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy