package net.hamnaberg.jsonstat;

/**
 * Created by hadrien on 07/06/16.
 *
 * @see <a href="https://json-stat.org/format/#version">json-stat.org/format/#version</a>
 */
public class JsonStat {

    private final Version version;

    private final Class clazz;

    public JsonStat(Version version, Class clazz) {
        this.version = version;
        this.clazz = clazz;
    }

    public enum Version {

        ONE("1.0"), TWO("2.0");

        private final String tag;

        Version(final String tag) {
            this.tag = tag;
        }

        String getTag() {
            return this.tag;
        }
    }

    public enum Class {
        DATASET,
        DIMENSION,
        COLLECTION
    }

}

@@ -26,16 +26,71 @@
 nstat;%0A%0A
+import com.fasterxml.jackson.annotation.JsonProperty;%0A%0A
 /**%0A * C
@@ -421,32 +421,217 @@
 = clazz;%0A    %7D%0A%0A
+    public String getVersion() %7B%0A        return version.getTag();%0A    %7D%0A%0A    @JsonProperty(%22class%22)%0A    public String getClazz() %7B%0A        return clazz.toString().toLowerCase();%0A    %7D%0A%0A
     public enum 

Add the class and version property