package com.se.simu.domain.dto; import cn.hutool.json.JSONArray; import com.se.simu.domain.dto.GeDb; import com.se.simu.domain.dto.GeField; import java.util.List; @SuppressWarnings("ALL") public class GeLayer { private String id; private String name; private List fields; private String queryType; private String shpName; private GeDb db; private JSONArray data; public GeLayer() { this.data = new JSONArray(); } public GeLayer(String id, String name) { this(); this.id = id; this.name = name; } public GeLayer(GeLayer layer,JSONArray data) { this.id = layer.getId(); this.name = layer.getName(); this.queryType = layer.getQueryType(); this.fields = layer.getFields(); this.shpName = layer.getShpName(); this.db = layer.getDb(); this.data = data; } public GeLayer(String id, String name, String queryType, List fields, String shpName, GeDb db) { this(); this.id = id; this.name = name; this.queryType = queryType; this.fields = fields; this.shpName = shpName; this.db = db; } public void addData(JSONArray arr) { this.data.addAll(arr); } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public List getFields() { return fields; } public void setFields(List fields) { this.fields = fields; } public JSONArray getData() { return data; } public void setData(JSONArray data) { this.data = data; } public String getQueryType() { return queryType; } public void setQueryType(String queryType) { this.queryType = queryType; } public String getShpName() { return shpName; } public void setShpName(String shpName) { this.shpName = shpName; } public GeDb getDb() { return db; } public void setDb(GeDb db) { this.db = db; } }