package de.i3mainz.chronontology.chronontology;

import org.json.simple.JSONObject;

/**
 * JSONObject to represent spatial data of a chronontology period
 * @author Florian Thiery
 */
public class CJSONObject {
    
    private static JSONObject cjson;
    
    public CJSONObject() {
        cjson = new JSONObject();
    }
    
}

@@ -42,16 +42,50 @@
 ology;%0A%0A
+import org.json.simple.JSONArray;%0A
 import o
@@ -241,116 +241,873 @@
 ect 
-%7B%0A    %0A    private static JSONObject cjson;%0A    %0A    public CJSONObject() %7B%0A        cjson = new JSONObject()
+extends JSONObject %7B%0A    %0A    private JSONObject geojson = new JSONObject();%0A    private String type = %22%22;%0A    private JSONArray features = new JSONArray();%0A    private JSONObject metadata = new JSONObject();%0A    %0A    public CJSONObject() %7B%0A        super();%0A        geojson = new JSONObject();%0A        geojson.put(%22type%22, type);%0A        geojson.put(%22features%22, features);%0A        geojson.put(%22metadata%22, metadata);%0A    %7D%0A%0A    public String getType() %7B%0A        return type;%0A    %7D%0A%0A    public void setType(String type) %7B%0A        this.type = type;%0A    %7D%0A%0A    public JSONArray getFeatures() %7B%0A        return features;%0A    %7D%0A%0A    public void setFeatures(JSONArray features) %7B%0A        this.features = features;%0A    %7D%0A%0A    public JSONObject getMetadata() %7B%0A        return metadata;%0A    %7D%0A%0A    public void setMetadata(JSONObject metadata) %7B%0A        this.metadata = metadata
 ;%0A  

set CJSONObject as child from JSONObject